List cron tasks
Authorizations:
query Parameters
page | integer page number of results to return (1-based) |
limit | integer page size of results |
Responses
Response samples
- 200
[- {
- "exec_times": 0,
- "name": "string",
- "next": "2019-08-24T14:15:22Z",
- "prev": "2019-08-24T14:15:22Z",
- "schedule": "string"
}
]
List all emails
Authorizations:
query Parameters
page | integer page number of results to return (1-based) |
limit | integer page size of results |
Responses
Response samples
- 200
[- {
- "email": "user@example.com",
- "primary": true,
- "user_id": 0,
- "username": "string",
- "verified": true
}
]
Search all emails
Authorizations:
query Parameters
q | string keyword |
page | integer page number of results to return (1-based) |
limit | integer page size of results |
Responses
Response samples
- 200
[- {
- "email": "user@example.com",
- "primary": true,
- "user_id": 0,
- "username": "string",
- "verified": true
}
]
List system's webhooks
Authorizations:
query Parameters
page | integer page number of results to return (1-based) |
limit | integer page size of results |
Responses
Response samples
- 200
[- {
- "active": true,
- "authorization_header": "string",
- "branch_filter": "string",
- "config": {
- "property1": "string",
- "property2": "string"
}, - "created_at": "2019-08-24T14:15:22Z",
- "events": [
- "string"
], - "id": 0,
- "type": "string",
- "updated_at": "2019-08-24T14:15:22Z"
}
]
Create a hook
Authorizations:
Request Body schema: application/jsonrequired
active | boolean Default: false |
authorization_header | string |
branch_filter | string |
required | object (CreateHookOptionConfig) CreateHookOptionConfig has all config options in it required are "content_type" and "url" Required |
events | Array of strings |
type required | string Enum: "dingtalk" "discord" "gitea" "gogs" "msteams" "slack" "telegram" "feishu" "wechatwork" "packagist" |
Responses
Request samples
- Payload
{- "active": false,
- "authorization_header": "string",
- "branch_filter": "string",
- "config": {
- "property1": "string",
- "property2": "string"
}, - "events": [
- "string"
], - "type": "dingtalk"
}
Response samples
- 201
{- "active": true,
- "authorization_header": "string",
- "branch_filter": "string",
- "config": {
- "property1": "string",
- "property2": "string"
}, - "created_at": "2019-08-24T14:15:22Z",
- "events": [
- "string"
], - "id": 0,
- "type": "string",
- "updated_at": "2019-08-24T14:15:22Z"
}
Get a hook
Authorizations:
path Parameters
id required | integer <int64> id of the hook to get |
Responses
Response samples
- 200
{- "active": true,
- "authorization_header": "string",
- "branch_filter": "string",
- "config": {
- "property1": "string",
- "property2": "string"
}, - "created_at": "2019-08-24T14:15:22Z",
- "events": [
- "string"
], - "id": 0,
- "type": "string",
- "updated_at": "2019-08-24T14:15:22Z"
}
Update a hook
Authorizations:
path Parameters
id required | integer <int64> id of the hook to update |
Request Body schema: application/json
active | boolean |
authorization_header | string |
branch_filter | string |
object | |
events | Array of strings |
Responses
Request samples
- Payload
{- "active": true,
- "authorization_header": "string",
- "branch_filter": "string",
- "config": {
- "property1": "string",
- "property2": "string"
}, - "events": [
- "string"
]
}
Response samples
- 200
{- "active": true,
- "authorization_header": "string",
- "branch_filter": "string",
- "config": {
- "property1": "string",
- "property2": "string"
}, - "created_at": "2019-08-24T14:15:22Z",
- "events": [
- "string"
], - "id": 0,
- "type": "string",
- "updated_at": "2019-08-24T14:15:22Z"
}
List all organizations
Authorizations:
query Parameters
page | integer page number of results to return (1-based) |
limit | integer page size of results |
Responses
Response samples
- 200
[- {
- "avatar_url": "string",
- "description": "string",
- "email": "string",
- "full_name": "string",
- "id": 0,
- "location": "string",
- "name": "string",
- "repo_admin_change_team_access": true,
- "username": "string",
- "visibility": "string",
- "website": "string"
}
]
List unadopted repositories
Authorizations:
query Parameters
page | integer page number of results to return (1-based) |
limit | integer page size of results |
pattern | string pattern of repositories to search for |
Responses
Response samples
- 200
[- "string"
]
Search users according filter conditions
Authorizations:
query Parameters
source_id | integer <int64> ID of the user's login source to search for |
login_name | string user's login name to search for |
page | integer page number of results to return (1-based) |
limit | integer page size of results |
Responses
Response samples
- 200
[- {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}
]
Create a user
Authorizations:
Request Body schema: application/json
created_at | string <date-time> For explicitly setting the user creation timestamp. Useful when users are migrated from other systems. When omitted, the user's creation timestamp will be set to "now". |
email required | string <email> |
full_name | string |
login_name | string |
must_change_password | boolean |
password | string |
restricted | boolean |
send_notify | boolean |
source_id | integer <int64> |
username required | string |
visibility | string |
Responses
Request samples
- Payload
{- "created_at": "2019-08-24T14:15:22Z",
- "email": "user@example.com",
- "full_name": "string",
- "login_name": "string",
- "must_change_password": true,
- "password": "string",
- "restricted": true,
- "send_notify": true,
- "source_id": 0,
- "username": "string",
- "visibility": "string"
}
Response samples
- 201
{- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}
Edit an existing user
Authorizations:
path Parameters
username required | string username of user to edit |
Request Body schema: application/json
active | boolean |
admin | boolean |
allow_create_organization | boolean |
allow_git_hook | boolean |
allow_import_local | boolean |
description | string |
string <email> | |
full_name | string |
location | string |
login_name required | string |
max_repo_creation | integer <int64> |
must_change_password | boolean |
password | string |
prohibit_login | boolean |
restricted | boolean |
source_id required | integer <int64> |
visibility | string |
website | string |
Responses
Request samples
- Payload
{- "active": true,
- "admin": true,
- "allow_create_organization": true,
- "allow_git_hook": true,
- "allow_import_local": true,
- "description": "string",
- "email": "user@example.com",
- "full_name": "string",
- "location": "string",
- "login_name": "string",
- "max_repo_creation": 0,
- "must_change_password": true,
- "password": "string",
- "prohibit_login": true,
- "restricted": true,
- "source_id": 0,
- "visibility": "string",
- "website": "string"
}
Response samples
- 200
{- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}
Add a public key on behalf of a user
Authorizations:
path Parameters
username required | string username of the user |
Request Body schema: application/json
key required | string unique An armored SSH key to add |
read_only | boolean Describe if the key has only read access or read/write |
title required | string unique Title of the key to add |
Responses
Request samples
- Payload
{- "key": "string",
- "read_only": true,
- "title": "string"
}
Response samples
- 201
{- "created_at": "2019-08-24T14:15:22Z",
- "fingerprint": "string",
- "id": 0,
- "key": "string",
- "key_type": "string",
- "read_only": true,
- "title": "string",
- "url": "string",
- "user": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}
}
Create an organization
Authorizations:
path Parameters
username required | string username of the user that will own the created organization |
Request Body schema: application/jsonrequired
description | string |
string | |
full_name | string |
location | string |
repo_admin_change_team_access | boolean |
username required | string |
visibility | string Enum: "public" "limited" "private" possible values are |
website | string |
Responses
Request samples
- Payload
{- "description": "string",
- "email": "string",
- "full_name": "string",
- "location": "string",
- "repo_admin_change_team_access": true,
- "username": "string",
- "visibility": "public",
- "website": "string"
}
Response samples
- 201
{- "avatar_url": "string",
- "description": "string",
- "email": "string",
- "full_name": "string",
- "id": 0,
- "location": "string",
- "name": "string",
- "repo_admin_change_team_access": true,
- "username": "string",
- "visibility": "string",
- "website": "string"
}
Rename a user
Authorizations:
path Parameters
username required | string existing username of user |
Request Body schema: required
new_username required | string unique New username for this user. This name cannot be in use yet by any other user. |
Responses
Request samples
- Payload
{- "new_username": "string"
}
Create a repository on behalf of a user
Authorizations:
path Parameters
username required | string username of the user. This user will own the created repository |
Request Body schema: application/jsonrequired
auto_init | boolean Whether the repository should be auto-initialized? |
default_branch | string DefaultBranch of the repository (used when initializes and in template) |
description | string Description of the repository to create |
gitignores | string Gitignores to use |
issue_labels | string Label-Set to use |
license | string License to use |
name required | string unique Name of the repository to create |
private | boolean Whether the repository is private |
readme | string Readme of the repository to create |
template | boolean Whether the repository is template |
trust_model | string Enum: "default" "collaborator" "committer" "collaboratorcommitter" TrustModel of the repository |
Responses
Request samples
- Payload
{- "auto_init": true,
- "default_branch": "string",
- "description": "string",
- "gitignores": "string",
- "issue_labels": "string",
- "license": "string",
- "name": "string",
- "private": true,
- "readme": "string",
- "template": true,
- "trust_model": "default"
}
Response samples
- 201
{- "allow_merge_commits": true,
- "allow_rebase": true,
- "allow_rebase_explicit": true,
- "allow_rebase_update": true,
- "allow_squash_merge": true,
- "archived": true,
- "archived_at": "2019-08-24T14:15:22Z",
- "avatar_url": "string",
- "clone_url": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "default_allow_maintainer_edit": true,
- "default_branch": "string",
- "default_delete_branch_after_merge": true,
- "default_merge_style": "string",
- "description": "string",
- "empty": true,
- "external_tracker": {
- "external_tracker_format": "string",
- "external_tracker_regexp_pattern": "string",
- "external_tracker_style": "string",
- "external_tracker_url": "string"
}, - "external_wiki": {
- "external_wiki_url": "string"
}, - "fork": true,
- "forks_count": 0,
- "full_name": "string",
- "has_actions": true,
- "has_issues": true,
- "has_packages": true,
- "has_projects": true,
- "has_pull_requests": true,
- "has_releases": true,
- "has_wiki": true,
- "html_url": "string",
- "id": 0,
- "ignore_whitespace_conflicts": true,
- "internal": true,
- "internal_tracker": {
- "allow_only_contributors_to_track_time": true,
- "enable_issue_dependencies": true,
- "enable_time_tracker": true
}, - "language": "string",
- "languages_url": "string",
- "link": "string",
- "mirror": true,
- "mirror_interval": "string",
- "mirror_updated": "2019-08-24T14:15:22Z",
- "name": "string",
- "open_issues_count": 0,
- "open_pr_counter": 0,
- "original_url": "string",
- "owner": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "parent": { },
- "permissions": {
- "admin": true,
- "pull": true,
- "push": true
}, - "private": true,
- "release_counter": 0,
- "repo_transfer": {
- "doer": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "recipient": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "teams": [
- {
- "can_create_org_repo": true,
- "description": "string",
- "id": 0,
- "includes_all_repositories": true,
- "name": "string",
- "organization": {
- "avatar_url": "string",
- "description": "string",
- "email": "string",
- "full_name": "string",
- "id": 0,
- "location": "string",
- "name": "string",
- "repo_admin_change_team_access": true,
- "username": "string",
- "visibility": "string",
- "website": "string"
}, - "permission": "none",
- "units": [
- "repo.code",
- "repo.issues",
- "repo.ext_issues",
- "repo.wiki",
- "repo.pulls",
- "repo.releases",
- "repo.projects",
- "repo.ext_wiki"
], - "units_map": {
- "repo.code": "read",
- "repo.ext_issues": "none",
- "repo.ext_wiki": "none",
- "repo.issues": "write",
- "repo.projects": "none",
- "repo.pulls": "owner",
- "repo.releases": "none",
- "repo.wiki": "admin"
}
}
]
}, - "size": 0,
- "ssh_url": "string",
- "stars_count": 0,
- "template": true,
- "updated_at": "2019-08-24T14:15:22Z",
- "url": "string",
- "watchers_count": 0,
- "website": "string"
}
Returns all labels in a template
Authorizations:
path Parameters
name required | string name of the template |
Responses
Response samples
- 200
[- {
- "color": "00aabb",
- "description": "string",
- "exclusive": false,
- "name": "string"
}
]
Returns information about a license template
Authorizations:
path Parameters
name required | string name of the license |
Responses
Response samples
- 200
{- "body": "string",
- "implementation": "string",
- "key": "string",
- "name": "string",
- "url": "string"
}
Render a markdown document as HTML
Authorizations:
Request Body schema: application/json
Context | string Context to render in: body |
Mode | string Mode to render (comment, gfm, markdown) in: body |
Text | string Text markdown to render in: body |
Wiki | boolean Is it a wiki page ? in: body |
Responses
Request samples
- Payload
{- "Context": "string",
- "Mode": "string",
- "Text": "string",
- "Wiki": true
}
Response samples
- 200
"string"
Render a markup document as HTML
Authorizations:
Request Body schema: application/json
Context | string Context to render in: body |
FilePath | string File path for detecting extension in file mode in: body |
Mode | string Mode to render (comment, gfm, markdown, file) in: body |
Text | string Text markup to render in: body |
Wiki | boolean Is it a wiki page ? in: body |
Responses
Request samples
- Payload
{- "Context": "string",
- "FilePath": "string",
- "Mode": "string",
- "Text": "string",
- "Wiki": true
}
Response samples
- 200
"string"
Returns the nodeinfo of the Gitea application
Authorizations:
Responses
Response samples
- 200
{- "metadata": { },
- "openRegistrations": true,
- "protocols": [
- "string"
], - "services": {
- "inbound": [
- "string"
], - "outbound": [
- "string"
]
}, - "software": {
- "homepage": "string",
- "name": "string",
- "repository": "string",
- "version": "string"
}, - "usage": {
- "localComments": 0,
- "localPosts": 0,
- "users": {
- "activeHalfyear": 0,
- "activeMonth": 0,
- "total": 0
}
}, - "version": "string"
}
List users's notification threads
Authorizations:
query Parameters
all | boolean If true, show notifications marked as read. Default value is false |
status-types | Array of strings Show notifications with the provided status types. Options are: unread, read and/or pinned. Defaults to unread & pinned. |
subject-type | Array of strings Items Enum: "issue" "pull" "commit" "repository" filter notifications by subject type |
since | string <date-time> Only show notifications updated after the given time. This is a timestamp in RFC 3339 format |
before | string <date-time> Only show notifications updated before the given time. This is a timestamp in RFC 3339 format |
page | integer page number of results to return (1-based) |
limit | integer page size of results |
Responses
Response samples
- 200
[- {
- "id": 0,
- "pinned": true,
- "repository": {
- "allow_merge_commits": true,
- "allow_rebase": true,
- "allow_rebase_explicit": true,
- "allow_rebase_update": true,
- "allow_squash_merge": true,
- "archived": true,
- "archived_at": "2019-08-24T14:15:22Z",
- "avatar_url": "string",
- "clone_url": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "default_allow_maintainer_edit": true,
- "default_branch": "string",
- "default_delete_branch_after_merge": true,
- "default_merge_style": "string",
- "description": "string",
- "empty": true,
- "external_tracker": {
- "external_tracker_format": "string",
- "external_tracker_regexp_pattern": "string",
- "external_tracker_style": "string",
- "external_tracker_url": "string"
}, - "external_wiki": {
- "external_wiki_url": "string"
}, - "fork": true,
- "forks_count": 0,
- "full_name": "string",
- "has_actions": true,
- "has_issues": true,
- "has_packages": true,
- "has_projects": true,
- "has_pull_requests": true,
- "has_releases": true,
- "has_wiki": true,
- "html_url": "string",
- "id": 0,
- "ignore_whitespace_conflicts": true,
- "internal": true,
- "internal_tracker": {
- "allow_only_contributors_to_track_time": true,
- "enable_issue_dependencies": true,
- "enable_time_tracker": true
}, - "language": "string",
- "languages_url": "string",
- "link": "string",
- "mirror": true,
- "mirror_interval": "string",
- "mirror_updated": "2019-08-24T14:15:22Z",
- "name": "string",
- "open_issues_count": 0,
- "open_pr_counter": 0,
- "original_url": "string",
- "owner": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "parent": { },
- "permissions": {
- "admin": true,
- "pull": true,
- "push": true
}, - "private": true,
- "release_counter": 0,
- "repo_transfer": {
- "doer": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "recipient": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "teams": [
- {
- "can_create_org_repo": true,
- "description": "string",
- "id": 0,
- "includes_all_repositories": true,
- "name": "string",
- "organization": {
- "avatar_url": "string",
- "description": "string",
- "email": "string",
- "full_name": "string",
- "id": 0,
- "location": "string",
- "name": "string",
- "repo_admin_change_team_access": true,
- "username": "string",
- "visibility": "string",
- "website": "string"
}, - "permission": "none",
- "units": [
- "repo.code",
- "repo.issues",
- "repo.ext_issues",
- "repo.wiki",
- "repo.pulls",
- "repo.releases",
- "repo.projects",
- "repo.ext_wiki"
], - "units_map": {
- "repo.code": "read",
- "repo.ext_issues": "none",
- "repo.ext_wiki": "none",
- "repo.issues": "write",
- "repo.projects": "none",
- "repo.pulls": "owner",
- "repo.releases": "none",
- "repo.wiki": "admin"
}
}
]
}, - "size": 0,
- "ssh_url": "string",
- "stars_count": 0,
- "template": true,
- "updated_at": "2019-08-24T14:15:22Z",
- "url": "string",
- "watchers_count": 0,
- "website": "string"
}, - "subject": {
- "html_url": "string",
- "latest_comment_html_url": "string",
- "latest_comment_url": "string",
- "state": "string",
- "title": "string",
- "type": "string",
- "url": "string"
}, - "unread": true,
- "updated_at": "2019-08-24T14:15:22Z",
- "url": "string"
}
]
Mark notification threads as read, pinned or unread
Authorizations:
query Parameters
last_read_at | string <date-time> Describes the last point that notifications were checked. Anything updated since this time will not be updated. |
all | string If true, mark all notifications on this repo. Default value is false |
status-types | Array of strings Mark notifications with the provided status types. Options are: unread, read and/or pinned. Defaults to unread. |
to-status | string Status to mark notifications as, Defaults to read. |
Responses
Response samples
- 205
[- {
- "id": 0,
- "pinned": true,
- "repository": {
- "allow_merge_commits": true,
- "allow_rebase": true,
- "allow_rebase_explicit": true,
- "allow_rebase_update": true,
- "allow_squash_merge": true,
- "archived": true,
- "archived_at": "2019-08-24T14:15:22Z",
- "avatar_url": "string",
- "clone_url": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "default_allow_maintainer_edit": true,
- "default_branch": "string",
- "default_delete_branch_after_merge": true,
- "default_merge_style": "string",
- "description": "string",
- "empty": true,
- "external_tracker": {
- "external_tracker_format": "string",
- "external_tracker_regexp_pattern": "string",
- "external_tracker_style": "string",
- "external_tracker_url": "string"
}, - "external_wiki": {
- "external_wiki_url": "string"
}, - "fork": true,
- "forks_count": 0,
- "full_name": "string",
- "has_actions": true,
- "has_issues": true,
- "has_packages": true,
- "has_projects": true,
- "has_pull_requests": true,
- "has_releases": true,
- "has_wiki": true,
- "html_url": "string",
- "id": 0,
- "ignore_whitespace_conflicts": true,
- "internal": true,
- "internal_tracker": {
- "allow_only_contributors_to_track_time": true,
- "enable_issue_dependencies": true,
- "enable_time_tracker": true
}, - "language": "string",
- "languages_url": "string",
- "link": "string",
- "mirror": true,
- "mirror_interval": "string",
- "mirror_updated": "2019-08-24T14:15:22Z",
- "name": "string",
- "open_issues_count": 0,
- "open_pr_counter": 0,
- "original_url": "string",
- "owner": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "parent": { },
- "permissions": {
- "admin": true,
- "pull": true,
- "push": true
}, - "private": true,
- "release_counter": 0,
- "repo_transfer": {
- "doer": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "recipient": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "teams": [
- {
- "can_create_org_repo": true,
- "description": "string",
- "id": 0,
- "includes_all_repositories": true,
- "name": "string",
- "organization": {
- "avatar_url": "string",
- "description": "string",
- "email": "string",
- "full_name": "string",
- "id": 0,
- "location": "string",
- "name": "string",
- "repo_admin_change_team_access": true,
- "username": "string",
- "visibility": "string",
- "website": "string"
}, - "permission": "none",
- "units": [
- "repo.code",
- "repo.issues",
- "repo.ext_issues",
- "repo.wiki",
- "repo.pulls",
- "repo.releases",
- "repo.projects",
- "repo.ext_wiki"
], - "units_map": {
- "repo.code": "read",
- "repo.ext_issues": "none",
- "repo.ext_wiki": "none",
- "repo.issues": "write",
- "repo.projects": "none",
- "repo.pulls": "owner",
- "repo.releases": "none",
- "repo.wiki": "admin"
}
}
]
}, - "size": 0,
- "ssh_url": "string",
- "stars_count": 0,
- "template": true,
- "updated_at": "2019-08-24T14:15:22Z",
- "url": "string",
- "watchers_count": 0,
- "website": "string"
}, - "subject": {
- "html_url": "string",
- "latest_comment_html_url": "string",
- "latest_comment_url": "string",
- "state": "string",
- "title": "string",
- "type": "string",
- "url": "string"
}, - "unread": true,
- "updated_at": "2019-08-24T14:15:22Z",
- "url": "string"
}
]
Get notification thread by ID
Authorizations:
path Parameters
id required | string id of notification thread |
Responses
Response samples
- 200
{- "id": 0,
- "pinned": true,
- "repository": {
- "allow_merge_commits": true,
- "allow_rebase": true,
- "allow_rebase_explicit": true,
- "allow_rebase_update": true,
- "allow_squash_merge": true,
- "archived": true,
- "archived_at": "2019-08-24T14:15:22Z",
- "avatar_url": "string",
- "clone_url": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "default_allow_maintainer_edit": true,
- "default_branch": "string",
- "default_delete_branch_after_merge": true,
- "default_merge_style": "string",
- "description": "string",
- "empty": true,
- "external_tracker": {
- "external_tracker_format": "string",
- "external_tracker_regexp_pattern": "string",
- "external_tracker_style": "string",
- "external_tracker_url": "string"
}, - "external_wiki": {
- "external_wiki_url": "string"
}, - "fork": true,
- "forks_count": 0,
- "full_name": "string",
- "has_actions": true,
- "has_issues": true,
- "has_packages": true,
- "has_projects": true,
- "has_pull_requests": true,
- "has_releases": true,
- "has_wiki": true,
- "html_url": "string",
- "id": 0,
- "ignore_whitespace_conflicts": true,
- "internal": true,
- "internal_tracker": {
- "allow_only_contributors_to_track_time": true,
- "enable_issue_dependencies": true,
- "enable_time_tracker": true
}, - "language": "string",
- "languages_url": "string",
- "link": "string",
- "mirror": true,
- "mirror_interval": "string",
- "mirror_updated": "2019-08-24T14:15:22Z",
- "name": "string",
- "open_issues_count": 0,
- "open_pr_counter": 0,
- "original_url": "string",
- "owner": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "parent": { },
- "permissions": {
- "admin": true,
- "pull": true,
- "push": true
}, - "private": true,
- "release_counter": 0,
- "repo_transfer": {
- "doer": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "recipient": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "teams": [
- {
- "can_create_org_repo": true,
- "description": "string",
- "id": 0,
- "includes_all_repositories": true,
- "name": "string",
- "organization": {
- "avatar_url": "string",
- "description": "string",
- "email": "string",
- "full_name": "string",
- "id": 0,
- "location": "string",
- "name": "string",
- "repo_admin_change_team_access": true,
- "username": "string",
- "visibility": "string",
- "website": "string"
}, - "permission": "none",
- "units": [
- "repo.code",
- "repo.issues",
- "repo.ext_issues",
- "repo.wiki",
- "repo.pulls",
- "repo.releases",
- "repo.projects",
- "repo.ext_wiki"
], - "units_map": {
- "repo.code": "read",
- "repo.ext_issues": "none",
- "repo.ext_wiki": "none",
- "repo.issues": "write",
- "repo.projects": "none",
- "repo.pulls": "owner",
- "repo.releases": "none",
- "repo.wiki": "admin"
}
}
]
}, - "size": 0,
- "ssh_url": "string",
- "stars_count": 0,
- "template": true,
- "updated_at": "2019-08-24T14:15:22Z",
- "url": "string",
- "watchers_count": 0,
- "website": "string"
}, - "subject": {
- "html_url": "string",
- "latest_comment_html_url": "string",
- "latest_comment_url": "string",
- "state": "string",
- "title": "string",
- "type": "string",
- "url": "string"
}, - "unread": true,
- "updated_at": "2019-08-24T14:15:22Z",
- "url": "string"
}
Mark notification thread as read by ID
Authorizations:
path Parameters
id required | string id of notification thread |
query Parameters
to-status | string Default: "read" Status to mark notifications as |
Responses
Response samples
- 205
{- "id": 0,
- "pinned": true,
- "repository": {
- "allow_merge_commits": true,
- "allow_rebase": true,
- "allow_rebase_explicit": true,
- "allow_rebase_update": true,
- "allow_squash_merge": true,
- "archived": true,
- "archived_at": "2019-08-24T14:15:22Z",
- "avatar_url": "string",
- "clone_url": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "default_allow_maintainer_edit": true,
- "default_branch": "string",
- "default_delete_branch_after_merge": true,
- "default_merge_style": "string",
- "description": "string",
- "empty": true,
- "external_tracker": {
- "external_tracker_format": "string",
- "external_tracker_regexp_pattern": "string",
- "external_tracker_style": "string",
- "external_tracker_url": "string"
}, - "external_wiki": {
- "external_wiki_url": "string"
}, - "fork": true,
- "forks_count": 0,
- "full_name": "string",
- "has_actions": true,
- "has_issues": true,
- "has_packages": true,
- "has_projects": true,
- "has_pull_requests": true,
- "has_releases": true,
- "has_wiki": true,
- "html_url": "string",
- "id": 0,
- "ignore_whitespace_conflicts": true,
- "internal": true,
- "internal_tracker": {
- "allow_only_contributors_to_track_time": true,
- "enable_issue_dependencies": true,
- "enable_time_tracker": true
}, - "language": "string",
- "languages_url": "string",
- "link": "string",
- "mirror": true,
- "mirror_interval": "string",
- "mirror_updated": "2019-08-24T14:15:22Z",
- "name": "string",
- "open_issues_count": 0,
- "open_pr_counter": 0,
- "original_url": "string",
- "owner": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "parent": { },
- "permissions": {
- "admin": true,
- "pull": true,
- "push": true
}, - "private": true,
- "release_counter": 0,
- "repo_transfer": {
- "doer": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "recipient": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "teams": [
- {
- "can_create_org_repo": true,
- "description": "string",
- "id": 0,
- "includes_all_repositories": true,
- "name": "string",
- "organization": {
- "avatar_url": "string",
- "description": "string",
- "email": "string",
- "full_name": "string",
- "id": 0,
- "location": "string",
- "name": "string",
- "repo_admin_change_team_access": true,
- "username": "string",
- "visibility": "string",
- "website": "string"
}, - "permission": "none",
- "units": [
- "repo.code",
- "repo.issues",
- "repo.ext_issues",
- "repo.wiki",
- "repo.pulls",
- "repo.releases",
- "repo.projects",
- "repo.ext_wiki"
], - "units_map": {
- "repo.code": "read",
- "repo.ext_issues": "none",
- "repo.ext_wiki": "none",
- "repo.issues": "write",
- "repo.projects": "none",
- "repo.pulls": "owner",
- "repo.releases": "none",
- "repo.wiki": "admin"
}
}
]
}, - "size": 0,
- "ssh_url": "string",
- "stars_count": 0,
- "template": true,
- "updated_at": "2019-08-24T14:15:22Z",
- "url": "string",
- "watchers_count": 0,
- "website": "string"
}, - "subject": {
- "html_url": "string",
- "latest_comment_html_url": "string",
- "latest_comment_url": "string",
- "state": "string",
- "title": "string",
- "type": "string",
- "url": "string"
}, - "unread": true,
- "updated_at": "2019-08-24T14:15:22Z",
- "url": "string"
}
List users's notification threads on a specific repo
Authorizations:
path Parameters
owner required | string owner of the repo |
repo required | string name of the repo |
query Parameters
all | boolean If true, show notifications marked as read. Default value is false |
status-types | Array of strings Show notifications with the provided status types. Options are: unread, read and/or pinned. Defaults to unread & pinned |
subject-type | Array of strings Items Enum: "issue" "pull" "commit" "repository" filter notifications by subject type |
since | string <date-time> Only show notifications updated after the given time. This is a timestamp in RFC 3339 format |
before | string <date-time> Only show notifications updated before the given time. This is a timestamp in RFC 3339 format |
page | integer page number of results to return (1-based) |
limit | integer page size of results |
Responses
Response samples
- 200
[- {
- "id": 0,
- "pinned": true,
- "repository": {
- "allow_merge_commits": true,
- "allow_rebase": true,
- "allow_rebase_explicit": true,
- "allow_rebase_update": true,
- "allow_squash_merge": true,
- "archived": true,
- "archived_at": "2019-08-24T14:15:22Z",
- "avatar_url": "string",
- "clone_url": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "default_allow_maintainer_edit": true,
- "default_branch": "string",
- "default_delete_branch_after_merge": true,
- "default_merge_style": "string",
- "description": "string",
- "empty": true,
- "external_tracker": {
- "external_tracker_format": "string",
- "external_tracker_regexp_pattern": "string",
- "external_tracker_style": "string",
- "external_tracker_url": "string"
}, - "external_wiki": {
- "external_wiki_url": "string"
}, - "fork": true,
- "forks_count": 0,
- "full_name": "string",
- "has_actions": true,
- "has_issues": true,
- "has_packages": true,
- "has_projects": true,
- "has_pull_requests": true,
- "has_releases": true,
- "has_wiki": true,
- "html_url": "string",
- "id": 0,
- "ignore_whitespace_conflicts": true,
- "internal": true,
- "internal_tracker": {
- "allow_only_contributors_to_track_time": true,
- "enable_issue_dependencies": true,
- "enable_time_tracker": true
}, - "language": "string",
- "languages_url": "string",
- "link": "string",
- "mirror": true,
- "mirror_interval": "string",
- "mirror_updated": "2019-08-24T14:15:22Z",
- "name": "string",
- "open_issues_count": 0,
- "open_pr_counter": 0,
- "original_url": "string",
- "owner": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "parent": { },
- "permissions": {
- "admin": true,
- "pull": true,
- "push": true
}, - "private": true,
- "release_counter": 0,
- "repo_transfer": {
- "doer": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "recipient": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "teams": [
- {
- "can_create_org_repo": true,
- "description": "string",
- "id": 0,
- "includes_all_repositories": true,
- "name": "string",
- "organization": {
- "avatar_url": "string",
- "description": "string",
- "email": "string",
- "full_name": "string",
- "id": 0,
- "location": "string",
- "name": "string",
- "repo_admin_change_team_access": true,
- "username": "string",
- "visibility": "string",
- "website": "string"
}, - "permission": "none",
- "units": [
- "repo.code",
- "repo.issues",
- "repo.ext_issues",
- "repo.wiki",
- "repo.pulls",
- "repo.releases",
- "repo.projects",
- "repo.ext_wiki"
], - "units_map": {
- "repo.code": "read",
- "repo.ext_issues": "none",
- "repo.ext_wiki": "none",
- "repo.issues": "write",
- "repo.projects": "none",
- "repo.pulls": "owner",
- "repo.releases": "none",
- "repo.wiki": "admin"
}
}
]
}, - "size": 0,
- "ssh_url": "string",
- "stars_count": 0,
- "template": true,
- "updated_at": "2019-08-24T14:15:22Z",
- "url": "string",
- "watchers_count": 0,
- "website": "string"
}, - "subject": {
- "html_url": "string",
- "latest_comment_html_url": "string",
- "latest_comment_url": "string",
- "state": "string",
- "title": "string",
- "type": "string",
- "url": "string"
}, - "unread": true,
- "updated_at": "2019-08-24T14:15:22Z",
- "url": "string"
}
]
Mark notification threads as read, pinned or unread on a specific repo
Authorizations:
path Parameters
owner required | string owner of the repo |
repo required | string name of the repo |
query Parameters
all | string If true, mark all notifications on this repo. Default value is false |
status-types | Array of strings Mark notifications with the provided status types. Options are: unread, read and/or pinned. Defaults to unread. |
to-status | string Status to mark notifications as. Defaults to read. |
last_read_at | string <date-time> Describes the last point that notifications were checked. Anything updated since this time will not be updated. |
Responses
Response samples
- 205
[- {
- "id": 0,
- "pinned": true,
- "repository": {
- "allow_merge_commits": true,
- "allow_rebase": true,
- "allow_rebase_explicit": true,
- "allow_rebase_update": true,
- "allow_squash_merge": true,
- "archived": true,
- "archived_at": "2019-08-24T14:15:22Z",
- "avatar_url": "string",
- "clone_url": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "default_allow_maintainer_edit": true,
- "default_branch": "string",
- "default_delete_branch_after_merge": true,
- "default_merge_style": "string",
- "description": "string",
- "empty": true,
- "external_tracker": {
- "external_tracker_format": "string",
- "external_tracker_regexp_pattern": "string",
- "external_tracker_style": "string",
- "external_tracker_url": "string"
}, - "external_wiki": {
- "external_wiki_url": "string"
}, - "fork": true,
- "forks_count": 0,
- "full_name": "string",
- "has_actions": true,
- "has_issues": true,
- "has_packages": true,
- "has_projects": true,
- "has_pull_requests": true,
- "has_releases": true,
- "has_wiki": true,
- "html_url": "string",
- "id": 0,
- "ignore_whitespace_conflicts": true,
- "internal": true,
- "internal_tracker": {
- "allow_only_contributors_to_track_time": true,
- "enable_issue_dependencies": true,
- "enable_time_tracker": true
}, - "language": "string",
- "languages_url": "string",
- "link": "string",
- "mirror": true,
- "mirror_interval": "string",
- "mirror_updated": "2019-08-24T14:15:22Z",
- "name": "string",
- "open_issues_count": 0,
- "open_pr_counter": 0,
- "original_url": "string",
- "owner": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "parent": { },
- "permissions": {
- "admin": true,
- "pull": true,
- "push": true
}, - "private": true,
- "release_counter": 0,
- "repo_transfer": {
- "doer": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "recipient": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "teams": [
- {
- "can_create_org_repo": true,
- "description": "string",
- "id": 0,
- "includes_all_repositories": true,
- "name": "string",
- "organization": {
- "avatar_url": "string",
- "description": "string",
- "email": "string",
- "full_name": "string",
- "id": 0,
- "location": "string",
- "name": "string",
- "repo_admin_change_team_access": true,
- "username": "string",
- "visibility": "string",
- "website": "string"
}, - "permission": "none",
- "units": [
- "repo.code",
- "repo.issues",
- "repo.ext_issues",
- "repo.wiki",
- "repo.pulls",
- "repo.releases",
- "repo.projects",
- "repo.ext_wiki"
], - "units_map": {
- "repo.code": "read",
- "repo.ext_issues": "none",
- "repo.ext_wiki": "none",
- "repo.issues": "write",
- "repo.projects": "none",
- "repo.pulls": "owner",
- "repo.releases": "none",
- "repo.wiki": "admin"
}
}
]
}, - "size": 0,
- "ssh_url": "string",
- "stars_count": 0,
- "template": true,
- "updated_at": "2019-08-24T14:15:22Z",
- "url": "string",
- "watchers_count": 0,
- "website": "string"
}, - "subject": {
- "html_url": "string",
- "latest_comment_html_url": "string",
- "latest_comment_url": "string",
- "state": "string",
- "title": "string",
- "type": "string",
- "url": "string"
}, - "unread": true,
- "updated_at": "2019-08-24T14:15:22Z",
- "url": "string"
}
]
Create a repository in an organization Deprecated
Authorizations:
path Parameters
org required | string name of organization |
Request Body schema: application/json
auto_init | boolean Whether the repository should be auto-initialized? |
default_branch | string DefaultBranch of the repository (used when initializes and in template) |
description | string Description of the repository to create |
gitignores | string Gitignores to use |
issue_labels | string Label-Set to use |
license | string License to use |
name required | string unique Name of the repository to create |
private | boolean Whether the repository is private |
readme | string Readme of the repository to create |
template | boolean Whether the repository is template |
trust_model | string Enum: "default" "collaborator" "committer" "collaboratorcommitter" TrustModel of the repository |
Responses
Request samples
- Payload
{- "auto_init": true,
- "default_branch": "string",
- "description": "string",
- "gitignores": "string",
- "issue_labels": "string",
- "license": "string",
- "name": "string",
- "private": true,
- "readme": "string",
- "template": true,
- "trust_model": "default"
}
Response samples
- 201
{- "allow_merge_commits": true,
- "allow_rebase": true,
- "allow_rebase_explicit": true,
- "allow_rebase_update": true,
- "allow_squash_merge": true,
- "archived": true,
- "archived_at": "2019-08-24T14:15:22Z",
- "avatar_url": "string",
- "clone_url": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "default_allow_maintainer_edit": true,
- "default_branch": "string",
- "default_delete_branch_after_merge": true,
- "default_merge_style": "string",
- "description": "string",
- "empty": true,
- "external_tracker": {
- "external_tracker_format": "string",
- "external_tracker_regexp_pattern": "string",
- "external_tracker_style": "string",
- "external_tracker_url": "string"
}, - "external_wiki": {
- "external_wiki_url": "string"
}, - "fork": true,
- "forks_count": 0,
- "full_name": "string",
- "has_actions": true,
- "has_issues": true,
- "has_packages": true,
- "has_projects": true,
- "has_pull_requests": true,
- "has_releases": true,
- "has_wiki": true,
- "html_url": "string",
- "id": 0,
- "ignore_whitespace_conflicts": true,
- "internal": true,
- "internal_tracker": {
- "allow_only_contributors_to_track_time": true,
- "enable_issue_dependencies": true,
- "enable_time_tracker": true
}, - "language": "string",
- "languages_url": "string",
- "link": "string",
- "mirror": true,
- "mirror_interval": "string",
- "mirror_updated": "2019-08-24T14:15:22Z",
- "name": "string",
- "open_issues_count": 0,
- "open_pr_counter": 0,
- "original_url": "string",
- "owner": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "parent": { },
- "permissions": {
- "admin": true,
- "pull": true,
- "push": true
}, - "private": true,
- "release_counter": 0,
- "repo_transfer": {
- "doer": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "recipient": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "teams": [
- {
- "can_create_org_repo": true,
- "description": "string",
- "id": 0,
- "includes_all_repositories": true,
- "name": "string",
- "organization": {
- "avatar_url": "string",
- "description": "string",
- "email": "string",
- "full_name": "string",
- "id": 0,
- "location": "string",
- "name": "string",
- "repo_admin_change_team_access": true,
- "username": "string",
- "visibility": "string",
- "website": "string"
}, - "permission": "none",
- "units": [
- "repo.code",
- "repo.issues",
- "repo.ext_issues",
- "repo.wiki",
- "repo.pulls",
- "repo.releases",
- "repo.projects",
- "repo.ext_wiki"
], - "units_map": {
- "repo.code": "read",
- "repo.ext_issues": "none",
- "repo.ext_wiki": "none",
- "repo.issues": "write",
- "repo.projects": "none",
- "repo.pulls": "owner",
- "repo.releases": "none",
- "repo.wiki": "admin"
}
}
]
}, - "size": 0,
- "ssh_url": "string",
- "stars_count": 0,
- "template": true,
- "updated_at": "2019-08-24T14:15:22Z",
- "url": "string",
- "watchers_count": 0,
- "website": "string"
}
Get list of organizations
Authorizations:
query Parameters
page | integer page number of results to return (1-based) |
limit | integer page size of results |
Responses
Response samples
- 200
[- {
- "avatar_url": "string",
- "description": "string",
- "email": "string",
- "full_name": "string",
- "id": 0,
- "location": "string",
- "name": "string",
- "repo_admin_change_team_access": true,
- "username": "string",
- "visibility": "string",
- "website": "string"
}
]
Create an organization
Authorizations:
Request Body schema: application/jsonrequired
description | string |
string | |
full_name | string |
location | string |
repo_admin_change_team_access | boolean |
username required | string |
visibility | string Enum: "public" "limited" "private" possible values are |
website | string |
Responses
Request samples
- Payload
{- "description": "string",
- "email": "string",
- "full_name": "string",
- "location": "string",
- "repo_admin_change_team_access": true,
- "username": "string",
- "visibility": "public",
- "website": "string"
}
Response samples
- 201
{- "avatar_url": "string",
- "description": "string",
- "email": "string",
- "full_name": "string",
- "id": 0,
- "location": "string",
- "name": "string",
- "repo_admin_change_team_access": true,
- "username": "string",
- "visibility": "string",
- "website": "string"
}
Get an organization
Authorizations:
path Parameters
org required | string name of the organization to get |
Responses
Response samples
- 200
{- "avatar_url": "string",
- "description": "string",
- "email": "string",
- "full_name": "string",
- "id": 0,
- "location": "string",
- "name": "string",
- "repo_admin_change_team_access": true,
- "username": "string",
- "visibility": "string",
- "website": "string"
}
Edit an organization
Authorizations:
path Parameters
org required | string name of the organization to edit |
Request Body schema: application/jsonrequired
description | string |
string | |
full_name | string |
location | string |
repo_admin_change_team_access | boolean |
visibility | string Enum: "public" "limited" "private" possible values are |
website | string |
Responses
Request samples
- Payload
{- "description": "string",
- "email": "string",
- "full_name": "string",
- "location": "string",
- "repo_admin_change_team_access": true,
- "visibility": "public",
- "website": "string"
}
Response samples
- 200
{- "avatar_url": "string",
- "description": "string",
- "email": "string",
- "full_name": "string",
- "id": 0,
- "location": "string",
- "name": "string",
- "repo_admin_change_team_access": true,
- "username": "string",
- "visibility": "string",
- "website": "string"
}
List an organization's actions secrets
Authorizations:
path Parameters
org required | string name of the organization |
query Parameters
page | integer page number of results to return (1-based) |
limit | integer page size of results |
Responses
Response samples
- 200
[- {
- "created_at": "2019-08-24T14:15:22Z",
- "name": "string"
}
]
Create or Update a secret value in an organization
Authorizations:
path Parameters
org required | string name of organization |
secretname required | string name of the secret |
Request Body schema: application/json
data required | string Data of the secret to update |
Responses
Request samples
- Payload
{- "data": "string"
}
List an organization's activity feeds
Authorizations:
path Parameters
org required | string name of the org |
query Parameters
date | string <date> the date of the activities to be found |
page | integer page number of results to return (1-based) |
limit | integer page size of results |
Responses
Response samples
- 200
[- {
- "act_user": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "act_user_id": 0,
- "comment": {
- "assets": [
- {
- "browser_download_url": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "download_count": 0,
- "id": 0,
- "name": "string",
- "size": 0,
- "uuid": "string"
}
], - "body": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "html_url": "string",
- "id": 0,
- "issue_url": "string",
- "original_author": "string",
- "original_author_id": 0,
- "pull_request_url": "string",
- "updated_at": "2019-08-24T14:15:22Z",
- "user": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}
}, - "comment_id": 0,
- "content": "string",
- "created": "2019-08-24T14:15:22Z",
- "id": 0,
- "is_private": true,
- "op_type": "string",
- "ref_name": "string",
- "repo": {
- "allow_merge_commits": true,
- "allow_rebase": true,
- "allow_rebase_explicit": true,
- "allow_rebase_update": true,
- "allow_squash_merge": true,
- "archived": true,
- "archived_at": "2019-08-24T14:15:22Z",
- "avatar_url": "string",
- "clone_url": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "default_allow_maintainer_edit": true,
- "default_branch": "string",
- "default_delete_branch_after_merge": true,
- "default_merge_style": "string",
- "description": "string",
- "empty": true,
- "external_tracker": {
- "external_tracker_format": "string",
- "external_tracker_regexp_pattern": "string",
- "external_tracker_style": "string",
- "external_tracker_url": "string"
}, - "external_wiki": {
- "external_wiki_url": "string"
}, - "fork": true,
- "forks_count": 0,
- "full_name": "string",
- "has_actions": true,
- "has_issues": true,
- "has_packages": true,
- "has_projects": true,
- "has_pull_requests": true,
- "has_releases": true,
- "has_wiki": true,
- "html_url": "string",
- "id": 0,
- "ignore_whitespace_conflicts": true,
- "internal": true,
- "internal_tracker": {
- "allow_only_contributors_to_track_time": true,
- "enable_issue_dependencies": true,
- "enable_time_tracker": true
}, - "language": "string",
- "languages_url": "string",
- "link": "string",
- "mirror": true,
- "mirror_interval": "string",
- "mirror_updated": "2019-08-24T14:15:22Z",
- "name": "string",
- "open_issues_count": 0,
- "open_pr_counter": 0,
- "original_url": "string",
- "owner": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "parent": { },
- "permissions": {
- "admin": true,
- "pull": true,
- "push": true
}, - "private": true,
- "release_counter": 0,
- "repo_transfer": {
- "doer": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "recipient": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "teams": [
- {
- "can_create_org_repo": true,
- "description": "string",
- "id": 0,
- "includes_all_repositories": true,
- "name": "string",
- "organization": {
- "avatar_url": "string",
- "description": "string",
- "email": "string",
- "full_name": "string",
- "id": 0,
- "location": "string",
- "name": "string",
- "repo_admin_change_team_access": true,
- "username": "string",
- "visibility": "string",
- "website": "string"
}, - "permission": "none",
- "units": [
- "repo.code",
- "repo.issues",
- "repo.ext_issues",
- "repo.wiki",
- "repo.pulls",
- "repo.releases",
- "repo.projects",
- "repo.ext_wiki"
], - "units_map": {
- "repo.code": "read",
- "repo.ext_issues": "none",
- "repo.ext_wiki": "none",
- "repo.issues": "write",
- "repo.projects": "none",
- "repo.pulls": "owner",
- "repo.releases": "none",
- "repo.wiki": "admin"
}
}
]
}, - "size": 0,
- "ssh_url": "string",
- "stars_count": 0,
- "template": true,
- "updated_at": "2019-08-24T14:15:22Z",
- "url": "string",
- "watchers_count": 0,
- "website": "string"
}, - "repo_id": 0,
- "user_id": 0
}
]
List an organization's webhooks
Authorizations:
path Parameters
org required | string name of the organization |
query Parameters
page | integer page number of results to return (1-based) |
limit | integer page size of results |
Responses
Response samples
- 200
[- {
- "active": true,
- "authorization_header": "string",
- "branch_filter": "string",
- "config": {
- "property1": "string",
- "property2": "string"
}, - "created_at": "2019-08-24T14:15:22Z",
- "events": [
- "string"
], - "id": 0,
- "type": "string",
- "updated_at": "2019-08-24T14:15:22Z"
}
]
Create a hook
Authorizations:
path Parameters
org required | string name of the organization |
Request Body schema: application/jsonrequired
active | boolean Default: false |
authorization_header | string |
branch_filter | string |
required | object (CreateHookOptionConfig) CreateHookOptionConfig has all config options in it required are "content_type" and "url" Required |
events | Array of strings |
type required | string Enum: "dingtalk" "discord" "gitea" "gogs" "msteams" "slack" "telegram" "feishu" "wechatwork" "packagist" |
Responses
Request samples
- Payload
{- "active": false,
- "authorization_header": "string",
- "branch_filter": "string",
- "config": {
- "property1": "string",
- "property2": "string"
}, - "events": [
- "string"
], - "type": "dingtalk"
}
Response samples
- 201
{- "active": true,
- "authorization_header": "string",
- "branch_filter": "string",
- "config": {
- "property1": "string",
- "property2": "string"
}, - "created_at": "2019-08-24T14:15:22Z",
- "events": [
- "string"
], - "id": 0,
- "type": "string",
- "updated_at": "2019-08-24T14:15:22Z"
}
Get a hook
Authorizations:
path Parameters
org required | string name of the organization |
id required | integer <int64> id of the hook to get |
Responses
Response samples
- 200
{- "active": true,
- "authorization_header": "string",
- "branch_filter": "string",
- "config": {
- "property1": "string",
- "property2": "string"
}, - "created_at": "2019-08-24T14:15:22Z",
- "events": [
- "string"
], - "id": 0,
- "type": "string",
- "updated_at": "2019-08-24T14:15:22Z"
}
Update a hook
Authorizations:
path Parameters
org required | string name of the organization |
id required | integer <int64> id of the hook to update |
Request Body schema: application/json
active | boolean |
authorization_header | string |
branch_filter | string |
object | |
events | Array of strings |
Responses
Request samples
- Payload
{- "active": true,
- "authorization_header": "string",
- "branch_filter": "string",
- "config": {
- "property1": "string",
- "property2": "string"
}, - "events": [
- "string"
]
}
Response samples
- 200
{- "active": true,
- "authorization_header": "string",
- "branch_filter": "string",
- "config": {
- "property1": "string",
- "property2": "string"
}, - "created_at": "2019-08-24T14:15:22Z",
- "events": [
- "string"
], - "id": 0,
- "type": "string",
- "updated_at": "2019-08-24T14:15:22Z"
}
List an organization's labels
Authorizations:
path Parameters
org required | string name of the organization |
query Parameters
page | integer page number of results to return (1-based) |
limit | integer page size of results |
Responses
Response samples
- 200
[- {
- "color": "00aabb",
- "description": "string",
- "exclusive": false,
- "id": 0,
- "is_archived": false,
- "name": "string",
- "url": "string"
}
]
Create a label for an organization
Authorizations:
path Parameters
org required | string name of the organization |
Request Body schema: application/json
color required | string |
description | string |
exclusive | boolean |
is_archived | boolean |
name required | string |
Responses
Request samples
- Payload
{- "color": "#00aabb",
- "description": "string",
- "exclusive": false,
- "is_archived": false,
- "name": "string"
}
Response samples
- 201
{- "color": "00aabb",
- "description": "string",
- "exclusive": false,
- "id": 0,
- "is_archived": false,
- "name": "string",
- "url": "string"
}
Get a single label
Authorizations:
path Parameters
org required | string name of the organization |
id required | integer <int64> id of the label to get |
Responses
Response samples
- 200
{- "color": "00aabb",
- "description": "string",
- "exclusive": false,
- "id": 0,
- "is_archived": false,
- "name": "string",
- "url": "string"
}
Update a label
Authorizations:
path Parameters
org required | string name of the organization |
id required | integer <int64> id of the label to edit |
Request Body schema: application/json
color | string |
description | string |
exclusive | boolean |
is_archived | boolean |
name | string |
Responses
Request samples
- Payload
{- "color": "#00aabb",
- "description": "string",
- "exclusive": false,
- "is_archived": false,
- "name": "string"
}
Response samples
- 200
{- "color": "00aabb",
- "description": "string",
- "exclusive": false,
- "id": 0,
- "is_archived": false,
- "name": "string",
- "url": "string"
}
List an organization's members
Authorizations:
path Parameters
org required | string name of the organization |
query Parameters
page | integer page number of results to return (1-based) |
limit | integer page size of results |
Responses
Response samples
- 200
[- {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}
]
List an organization's public members
Authorizations:
path Parameters
org required | string name of the organization |
query Parameters
page | integer page number of results to return (1-based) |
limit | integer page size of results |
Responses
Response samples
- 200
[- {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}
]
List an organization's repos
Authorizations:
path Parameters
org required | string name of the organization |
query Parameters
page | integer page number of results to return (1-based) |
limit | integer page size of results |
Responses
Response samples
- 200
[- {
- "allow_merge_commits": true,
- "allow_rebase": true,
- "allow_rebase_explicit": true,
- "allow_rebase_update": true,
- "allow_squash_merge": true,
- "archived": true,
- "archived_at": "2019-08-24T14:15:22Z",
- "avatar_url": "string",
- "clone_url": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "default_allow_maintainer_edit": true,
- "default_branch": "string",
- "default_delete_branch_after_merge": true,
- "default_merge_style": "string",
- "description": "string",
- "empty": true,
- "external_tracker": {
- "external_tracker_format": "string",
- "external_tracker_regexp_pattern": "string",
- "external_tracker_style": "string",
- "external_tracker_url": "string"
}, - "external_wiki": {
- "external_wiki_url": "string"
}, - "fork": true,
- "forks_count": 0,
- "full_name": "string",
- "has_actions": true,
- "has_issues": true,
- "has_packages": true,
- "has_projects": true,
- "has_pull_requests": true,
- "has_releases": true,
- "has_wiki": true,
- "html_url": "string",
- "id": 0,
- "ignore_whitespace_conflicts": true,
- "internal": true,
- "internal_tracker": {
- "allow_only_contributors_to_track_time": true,
- "enable_issue_dependencies": true,
- "enable_time_tracker": true
}, - "language": "string",
- "languages_url": "string",
- "link": "string",
- "mirror": true,
- "mirror_interval": "string",
- "mirror_updated": "2019-08-24T14:15:22Z",
- "name": "string",
- "open_issues_count": 0,
- "open_pr_counter": 0,
- "original_url": "string",
- "owner": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "parent": { },
- "permissions": {
- "admin": true,
- "pull": true,
- "push": true
}, - "private": true,
- "release_counter": 0,
- "repo_transfer": {
- "doer": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "recipient": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "teams": [
- {
- "can_create_org_repo": true,
- "description": "string",
- "id": 0,
- "includes_all_repositories": true,
- "name": "string",
- "organization": {
- "avatar_url": "string",
- "description": "string",
- "email": "string",
- "full_name": "string",
- "id": 0,
- "location": "string",
- "name": "string",
- "repo_admin_change_team_access": true,
- "username": "string",
- "visibility": "string",
- "website": "string"
}, - "permission": "none",
- "units": [
- "repo.code",
- "repo.issues",
- "repo.ext_issues",
- "repo.wiki",
- "repo.pulls",
- "repo.releases",
- "repo.projects",
- "repo.ext_wiki"
], - "units_map": {
- "repo.code": "read",
- "repo.ext_issues": "none",
- "repo.ext_wiki": "none",
- "repo.issues": "write",
- "repo.projects": "none",
- "repo.pulls": "owner",
- "repo.releases": "none",
- "repo.wiki": "admin"
}
}
]
}, - "size": 0,
- "ssh_url": "string",
- "stars_count": 0,
- "template": true,
- "updated_at": "2019-08-24T14:15:22Z",
- "url": "string",
- "watchers_count": 0,
- "website": "string"
}
]
Create a repository in an organization
Authorizations:
path Parameters
org required | string name of organization |
Request Body schema: application/json
auto_init | boolean Whether the repository should be auto-initialized? |
default_branch | string DefaultBranch of the repository (used when initializes and in template) |
description | string Description of the repository to create |
gitignores | string Gitignores to use |
issue_labels | string Label-Set to use |
license | string License to use |
name required | string unique Name of the repository to create |
private | boolean Whether the repository is private |
readme | string Readme of the repository to create |
template | boolean Whether the repository is template |
trust_model | string Enum: "default" "collaborator" "committer" "collaboratorcommitter" TrustModel of the repository |
Responses
Request samples
- Payload
{- "auto_init": true,
- "default_branch": "string",
- "description": "string",
- "gitignores": "string",
- "issue_labels": "string",
- "license": "string",
- "name": "string",
- "private": true,
- "readme": "string",
- "template": true,
- "trust_model": "default"
}
Response samples
- 201
{- "allow_merge_commits": true,
- "allow_rebase": true,
- "allow_rebase_explicit": true,
- "allow_rebase_update": true,
- "allow_squash_merge": true,
- "archived": true,
- "archived_at": "2019-08-24T14:15:22Z",
- "avatar_url": "string",
- "clone_url": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "default_allow_maintainer_edit": true,
- "default_branch": "string",
- "default_delete_branch_after_merge": true,
- "default_merge_style": "string",
- "description": "string",
- "empty": true,
- "external_tracker": {
- "external_tracker_format": "string",
- "external_tracker_regexp_pattern": "string",
- "external_tracker_style": "string",
- "external_tracker_url": "string"
}, - "external_wiki": {
- "external_wiki_url": "string"
}, - "fork": true,
- "forks_count": 0,
- "full_name": "string",
- "has_actions": true,
- "has_issues": true,
- "has_packages": true,
- "has_projects": true,
- "has_pull_requests": true,
- "has_releases": true,
- "has_wiki": true,
- "html_url": "string",
- "id": 0,
- "ignore_whitespace_conflicts": true,
- "internal": true,
- "internal_tracker": {
- "allow_only_contributors_to_track_time": true,
- "enable_issue_dependencies": true,
- "enable_time_tracker": true
}, - "language": "string",
- "languages_url": "string",
- "link": "string",
- "mirror": true,
- "mirror_interval": "string",
- "mirror_updated": "2019-08-24T14:15:22Z",
- "name": "string",
- "open_issues_count": 0,
- "open_pr_counter": 0,
- "original_url": "string",
- "owner": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "parent": { },
- "permissions": {
- "admin": true,
- "pull": true,
- "push": true
}, - "private": true,
- "release_counter": 0,
- "repo_transfer": {
- "doer": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "recipient": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "teams": [
- {
- "can_create_org_repo": true,
- "description": "string",
- "id": 0,
- "includes_all_repositories": true,
- "name": "string",
- "organization": {
- "avatar_url": "string",
- "description": "string",
- "email": "string",
- "full_name": "string",
- "id": 0,
- "location": "string",
- "name": "string",
- "repo_admin_change_team_access": true,
- "username": "string",
- "visibility": "string",
- "website": "string"
}, - "permission": "none",
- "units": [
- "repo.code",
- "repo.issues",
- "repo.ext_issues",
- "repo.wiki",
- "repo.pulls",
- "repo.releases",
- "repo.projects",
- "repo.ext_wiki"
], - "units_map": {
- "repo.code": "read",
- "repo.ext_issues": "none",
- "repo.ext_wiki": "none",
- "repo.issues": "write",
- "repo.projects": "none",
- "repo.pulls": "owner",
- "repo.releases": "none",
- "repo.wiki": "admin"
}
}
]
}, - "size": 0,
- "ssh_url": "string",
- "stars_count": 0,
- "template": true,
- "updated_at": "2019-08-24T14:15:22Z",
- "url": "string",
- "watchers_count": 0,
- "website": "string"
}
List an organization's teams
Authorizations:
path Parameters
org required | string name of the organization |
query Parameters
page | integer page number of results to return (1-based) |
limit | integer page size of results |
Responses
Response samples
- 200
[- {
- "can_create_org_repo": true,
- "description": "string",
- "id": 0,
- "includes_all_repositories": true,
- "name": "string",
- "organization": {
- "avatar_url": "string",
- "description": "string",
- "email": "string",
- "full_name": "string",
- "id": 0,
- "location": "string",
- "name": "string",
- "repo_admin_change_team_access": true,
- "username": "string",
- "visibility": "string",
- "website": "string"
}, - "permission": "none",
- "units": [
- "repo.code",
- "repo.issues",
- "repo.ext_issues",
- "repo.wiki",
- "repo.pulls",
- "repo.releases",
- "repo.projects",
- "repo.ext_wiki"
], - "units_map": {
- "repo.code": "read",
- "repo.ext_issues": "none",
- "repo.ext_wiki": "none",
- "repo.issues": "write",
- "repo.projects": "none",
- "repo.pulls": "owner",
- "repo.releases": "none",
- "repo.wiki": "admin"
}
}
]
Create a team
Authorizations:
path Parameters
org required | string name of the organization |
Request Body schema: application/json
can_create_org_repo | boolean |
description | string |
includes_all_repositories | boolean |
name required | string |
permission | string Enum: "read" "write" "admin" |
units | Array of strings |
object |
Responses
Request samples
- Payload
{- "can_create_org_repo": true,
- "description": "string",
- "includes_all_repositories": true,
- "name": "string",
- "permission": "read",
- "units": [
- "repo.actions",
- "repo.code",
- "repo.issues",
- "repo.ext_issues",
- "repo.wiki",
- "repo.ext_wiki",
- "repo.pulls",
- "repo.releases",
- "repo.projects",
- "repo.ext_wiki"
], - "units_map": "{\"repo.actions\",\"repo.packages\",\"repo.code\":\"read\",\"repo.issues\":\"write\",\"repo.ext_issues\":\"none\",\"repo.wiki\":\"admin\",\"repo.pulls\":\"owner\",\"repo.releases\":\"none\",\"repo.projects\":\"none\",\"repo.ext_wiki\":\"none\"}"
}
Response samples
- 201
{- "can_create_org_repo": true,
- "description": "string",
- "id": 0,
- "includes_all_repositories": true,
- "name": "string",
- "organization": {
- "avatar_url": "string",
- "description": "string",
- "email": "string",
- "full_name": "string",
- "id": 0,
- "location": "string",
- "name": "string",
- "repo_admin_change_team_access": true,
- "username": "string",
- "visibility": "string",
- "website": "string"
}, - "permission": "none",
- "units": [
- "repo.code",
- "repo.issues",
- "repo.ext_issues",
- "repo.wiki",
- "repo.pulls",
- "repo.releases",
- "repo.projects",
- "repo.ext_wiki"
], - "units_map": {
- "repo.code": "read",
- "repo.ext_issues": "none",
- "repo.ext_wiki": "none",
- "repo.issues": "write",
- "repo.projects": "none",
- "repo.pulls": "owner",
- "repo.releases": "none",
- "repo.wiki": "admin"
}
}
Search for teams within an organization
Authorizations:
path Parameters
org required | string name of the organization |
query Parameters
q | string keywords to search |
include_desc | boolean include search within team description (defaults to true) |
page | integer page number of results to return (1-based) |
limit | integer page size of results |
Responses
Response samples
- 200
{- "data": [
- {
- "can_create_org_repo": true,
- "description": "string",
- "id": 0,
- "includes_all_repositories": true,
- "name": "string",
- "organization": {
- "avatar_url": "string",
- "description": "string",
- "email": "string",
- "full_name": "string",
- "id": 0,
- "location": "string",
- "name": "string",
- "repo_admin_change_team_access": true,
- "username": "string",
- "visibility": "string",
- "website": "string"
}, - "permission": "none",
- "units": [
- "repo.code",
- "repo.issues",
- "repo.ext_issues",
- "repo.wiki",
- "repo.pulls",
- "repo.releases",
- "repo.projects",
- "repo.ext_wiki"
], - "units_map": {
- "repo.code": "read",
- "repo.ext_issues": "none",
- "repo.ext_wiki": "none",
- "repo.issues": "write",
- "repo.projects": "none",
- "repo.pulls": "owner",
- "repo.releases": "none",
- "repo.wiki": "admin"
}
}
], - "ok": true
}
Get a team
Authorizations:
path Parameters
id required | integer <int64> id of the team to get |
Responses
Response samples
- 200
{- "can_create_org_repo": true,
- "description": "string",
- "id": 0,
- "includes_all_repositories": true,
- "name": "string",
- "organization": {
- "avatar_url": "string",
- "description": "string",
- "email": "string",
- "full_name": "string",
- "id": 0,
- "location": "string",
- "name": "string",
- "repo_admin_change_team_access": true,
- "username": "string",
- "visibility": "string",
- "website": "string"
}, - "permission": "none",
- "units": [
- "repo.code",
- "repo.issues",
- "repo.ext_issues",
- "repo.wiki",
- "repo.pulls",
- "repo.releases",
- "repo.projects",
- "repo.ext_wiki"
], - "units_map": {
- "repo.code": "read",
- "repo.ext_issues": "none",
- "repo.ext_wiki": "none",
- "repo.issues": "write",
- "repo.projects": "none",
- "repo.pulls": "owner",
- "repo.releases": "none",
- "repo.wiki": "admin"
}
}
Edit a team
Authorizations:
path Parameters
id required | integer id of the team to edit |
Request Body schema: application/json
can_create_org_repo | boolean |
description | string |
includes_all_repositories | boolean |
name required | string |
permission | string Enum: "read" "write" "admin" |
units | Array of strings |
object |
Responses
Request samples
- Payload
{- "can_create_org_repo": true,
- "description": "string",
- "includes_all_repositories": true,
- "name": "string",
- "permission": "read",
- "units": [
- "repo.code",
- "repo.issues",
- "repo.ext_issues",
- "repo.wiki",
- "repo.pulls",
- "repo.releases",
- "repo.projects",
- "repo.ext_wiki"
], - "units_map": {
- "repo.code": "read",
- "repo.ext_issues": "none",
- "repo.ext_wiki": "none",
- "repo.issues": "write",
- "repo.projects": "none",
- "repo.pulls": "owner",
- "repo.releases": "none",
- "repo.wiki": "admin"
}
}
Response samples
- 200
{- "can_create_org_repo": true,
- "description": "string",
- "id": 0,
- "includes_all_repositories": true,
- "name": "string",
- "organization": {
- "avatar_url": "string",
- "description": "string",
- "email": "string",
- "full_name": "string",
- "id": 0,
- "location": "string",
- "name": "string",
- "repo_admin_change_team_access": true,
- "username": "string",
- "visibility": "string",
- "website": "string"
}, - "permission": "none",
- "units": [
- "repo.code",
- "repo.issues",
- "repo.ext_issues",
- "repo.wiki",
- "repo.pulls",
- "repo.releases",
- "repo.projects",
- "repo.ext_wiki"
], - "units_map": {
- "repo.code": "read",
- "repo.ext_issues": "none",
- "repo.ext_wiki": "none",
- "repo.issues": "write",
- "repo.projects": "none",
- "repo.pulls": "owner",
- "repo.releases": "none",
- "repo.wiki": "admin"
}
}
List a team's activity feeds
Authorizations:
path Parameters
id required | integer <int64> id of the team |
query Parameters
date | string <date> the date of the activities to be found |
page | integer page number of results to return (1-based) |
limit | integer page size of results |
Responses
Response samples
- 200
[- {
- "act_user": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "act_user_id": 0,
- "comment": {
- "assets": [
- {
- "browser_download_url": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "download_count": 0,
- "id": 0,
- "name": "string",
- "size": 0,
- "uuid": "string"
}
], - "body": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "html_url": "string",
- "id": 0,
- "issue_url": "string",
- "original_author": "string",
- "original_author_id": 0,
- "pull_request_url": "string",
- "updated_at": "2019-08-24T14:15:22Z",
- "user": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}
}, - "comment_id": 0,
- "content": "string",
- "created": "2019-08-24T14:15:22Z",
- "id": 0,
- "is_private": true,
- "op_type": "string",
- "ref_name": "string",
- "repo": {
- "allow_merge_commits": true,
- "allow_rebase": true,
- "allow_rebase_explicit": true,
- "allow_rebase_update": true,
- "allow_squash_merge": true,
- "archived": true,
- "archived_at": "2019-08-24T14:15:22Z",
- "avatar_url": "string",
- "clone_url": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "default_allow_maintainer_edit": true,
- "default_branch": "string",
- "default_delete_branch_after_merge": true,
- "default_merge_style": "string",
- "description": "string",
- "empty": true,
- "external_tracker": {
- "external_tracker_format": "string",
- "external_tracker_regexp_pattern": "string",
- "external_tracker_style": "string",
- "external_tracker_url": "string"
}, - "external_wiki": {
- "external_wiki_url": "string"
}, - "fork": true,
- "forks_count": 0,
- "full_name": "string",
- "has_actions": true,
- "has_issues": true,
- "has_packages": true,
- "has_projects": true,
- "has_pull_requests": true,
- "has_releases": true,
- "has_wiki": true,
- "html_url": "string",
- "id": 0,
- "ignore_whitespace_conflicts": true,
- "internal": true,
- "internal_tracker": {
- "allow_only_contributors_to_track_time": true,
- "enable_issue_dependencies": true,
- "enable_time_tracker": true
}, - "language": "string",
- "languages_url": "string",
- "link": "string",
- "mirror": true,
- "mirror_interval": "string",
- "mirror_updated": "2019-08-24T14:15:22Z",
- "name": "string",
- "open_issues_count": 0,
- "open_pr_counter": 0,
- "original_url": "string",
- "owner": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "parent": { },
- "permissions": {
- "admin": true,
- "pull": true,
- "push": true
}, - "private": true,
- "release_counter": 0,
- "repo_transfer": {
- "doer": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "recipient": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "teams": [
- {
- "can_create_org_repo": true,
- "description": "string",
- "id": 0,
- "includes_all_repositories": true,
- "name": "string",
- "organization": {
- "avatar_url": "string",
- "description": "string",
- "email": "string",
- "full_name": "string",
- "id": 0,
- "location": "string",
- "name": "string",
- "repo_admin_change_team_access": true,
- "username": "string",
- "visibility": "string",
- "website": "string"
}, - "permission": "none",
- "units": [
- "repo.code",
- "repo.issues",
- "repo.ext_issues",
- "repo.wiki",
- "repo.pulls",
- "repo.releases",
- "repo.projects",
- "repo.ext_wiki"
], - "units_map": {
- "repo.code": "read",
- "repo.ext_issues": "none",
- "repo.ext_wiki": "none",
- "repo.issues": "write",
- "repo.projects": "none",
- "repo.pulls": "owner",
- "repo.releases": "none",
- "repo.wiki": "admin"
}
}
]
}, - "size": 0,
- "ssh_url": "string",
- "stars_count": 0,
- "template": true,
- "updated_at": "2019-08-24T14:15:22Z",
- "url": "string",
- "watchers_count": 0,
- "website": "string"
}, - "repo_id": 0,
- "user_id": 0
}
]
List a team's members
Authorizations:
path Parameters
id required | integer <int64> id of the team |
query Parameters
page | integer page number of results to return (1-based) |
limit | integer page size of results |
Responses
Response samples
- 200
[- {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}
]
List a particular member of team
Authorizations:
path Parameters
id required | integer <int64> id of the team |
username required | string username of the member to list |
Responses
Response samples
- 200
{- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}
List a team's repos
Authorizations:
path Parameters
id required | integer <int64> id of the team |
query Parameters
page | integer page number of results to return (1-based) |
limit | integer page size of results |
Responses
Response samples
- 200
[- {
- "allow_merge_commits": true,
- "allow_rebase": true,
- "allow_rebase_explicit": true,
- "allow_rebase_update": true,
- "allow_squash_merge": true,
- "archived": true,
- "archived_at": "2019-08-24T14:15:22Z",
- "avatar_url": "string",
- "clone_url": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "default_allow_maintainer_edit": true,
- "default_branch": "string",
- "default_delete_branch_after_merge": true,
- "default_merge_style": "string",
- "description": "string",
- "empty": true,
- "external_tracker": {
- "external_tracker_format": "string",
- "external_tracker_regexp_pattern": "string",
- "external_tracker_style": "string",
- "external_tracker_url": "string"
}, - "external_wiki": {
- "external_wiki_url": "string"
}, - "fork": true,
- "forks_count": 0,
- "full_name": "string",
- "has_actions": true,
- "has_issues": true,
- "has_packages": true,
- "has_projects": true,
- "has_pull_requests": true,
- "has_releases": true,
- "has_wiki": true,
- "html_url": "string",
- "id": 0,
- "ignore_whitespace_conflicts": true,
- "internal": true,
- "internal_tracker": {
- "allow_only_contributors_to_track_time": true,
- "enable_issue_dependencies": true,
- "enable_time_tracker": true
}, - "language": "string",
- "languages_url": "string",
- "link": "string",
- "mirror": true,
- "mirror_interval": "string",
- "mirror_updated": "2019-08-24T14:15:22Z",
- "name": "string",
- "open_issues_count": 0,
- "open_pr_counter": 0,
- "original_url": "string",
- "owner": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "parent": { },
- "permissions": {
- "admin": true,
- "pull": true,
- "push": true
}, - "private": true,
- "release_counter": 0,
- "repo_transfer": {
- "doer": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "recipient": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "teams": [
- {
- "can_create_org_repo": true,
- "description": "string",
- "id": 0,
- "includes_all_repositories": true,
- "name": "string",
- "organization": {
- "avatar_url": "string",
- "description": "string",
- "email": "string",
- "full_name": "string",
- "id": 0,
- "location": "string",
- "name": "string",
- "repo_admin_change_team_access": true,
- "username": "string",
- "visibility": "string",
- "website": "string"
}, - "permission": "none",
- "units": [
- "repo.code",
- "repo.issues",
- "repo.ext_issues",
- "repo.wiki",
- "repo.pulls",
- "repo.releases",
- "repo.projects",
- "repo.ext_wiki"
], - "units_map": {
- "repo.code": "read",
- "repo.ext_issues": "none",
- "repo.ext_wiki": "none",
- "repo.issues": "write",
- "repo.projects": "none",
- "repo.pulls": "owner",
- "repo.releases": "none",
- "repo.wiki": "admin"
}
}
]
}, - "size": 0,
- "ssh_url": "string",
- "stars_count": 0,
- "template": true,
- "updated_at": "2019-08-24T14:15:22Z",
- "url": "string",
- "watchers_count": 0,
- "website": "string"
}
]
List a particular repo of team
Authorizations:
path Parameters
id required | integer <int64> id of the team |
org required | string organization that owns the repo to list |
repo required | string name of the repo to list |
Responses
Response samples
- 200
{- "allow_merge_commits": true,
- "allow_rebase": true,
- "allow_rebase_explicit": true,
- "allow_rebase_update": true,
- "allow_squash_merge": true,
- "archived": true,
- "archived_at": "2019-08-24T14:15:22Z",
- "avatar_url": "string",
- "clone_url": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "default_allow_maintainer_edit": true,
- "default_branch": "string",
- "default_delete_branch_after_merge": true,
- "default_merge_style": "string",
- "description": "string",
- "empty": true,
- "external_tracker": {
- "external_tracker_format": "string",
- "external_tracker_regexp_pattern": "string",
- "external_tracker_style": "string",
- "external_tracker_url": "string"
}, - "external_wiki": {
- "external_wiki_url": "string"
}, - "fork": true,
- "forks_count": 0,
- "full_name": "string",
- "has_actions": true,
- "has_issues": true,
- "has_packages": true,
- "has_projects": true,
- "has_pull_requests": true,
- "has_releases": true,
- "has_wiki": true,
- "html_url": "string",
- "id": 0,
- "ignore_whitespace_conflicts": true,
- "internal": true,
- "internal_tracker": {
- "allow_only_contributors_to_track_time": true,
- "enable_issue_dependencies": true,
- "enable_time_tracker": true
}, - "language": "string",
- "languages_url": "string",
- "link": "string",
- "mirror": true,
- "mirror_interval": "string",
- "mirror_updated": "2019-08-24T14:15:22Z",
- "name": "string",
- "open_issues_count": 0,
- "open_pr_counter": 0,
- "original_url": "string",
- "owner": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "parent": { },
- "permissions": {
- "admin": true,
- "pull": true,
- "push": true
}, - "private": true,
- "release_counter": 0,
- "repo_transfer": {
- "doer": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "recipient": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "teams": [
- {
- "can_create_org_repo": true,
- "description": "string",
- "id": 0,
- "includes_all_repositories": true,
- "name": "string",
- "organization": {
- "avatar_url": "string",
- "description": "string",
- "email": "string",
- "full_name": "string",
- "id": 0,
- "location": "string",
- "name": "string",
- "repo_admin_change_team_access": true,
- "username": "string",
- "visibility": "string",
- "website": "string"
}, - "permission": "none",
- "units": [
- "repo.code",
- "repo.issues",
- "repo.ext_issues",
- "repo.wiki",
- "repo.pulls",
- "repo.releases",
- "repo.projects",
- "repo.ext_wiki"
], - "units_map": {
- "repo.code": "read",
- "repo.ext_issues": "none",
- "repo.ext_wiki": "none",
- "repo.issues": "write",
- "repo.projects": "none",
- "repo.pulls": "owner",
- "repo.releases": "none",
- "repo.wiki": "admin"
}
}
]
}, - "size": 0,
- "ssh_url": "string",
- "stars_count": 0,
- "template": true,
- "updated_at": "2019-08-24T14:15:22Z",
- "url": "string",
- "watchers_count": 0,
- "website": "string"
}
Remove a repository from a team
This does not delete the repository, it only removes the repository from the team.
Authorizations:
path Parameters
id required | integer <int64> id of the team |
org required | string organization that owns the repo to remove |
repo required | string name of the repo to remove |
Responses
List the current user's organizations
Authorizations:
query Parameters
page | integer page number of results to return (1-based) |
limit | integer page size of results |
Responses
Response samples
- 200
[- {
- "avatar_url": "string",
- "description": "string",
- "email": "string",
- "full_name": "string",
- "id": 0,
- "location": "string",
- "name": "string",
- "repo_admin_change_team_access": true,
- "username": "string",
- "visibility": "string",
- "website": "string"
}
]
List a user's organizations
Authorizations:
path Parameters
username required | string username of user |
query Parameters
page | integer page number of results to return (1-based) |
limit | integer page size of results |
Responses
Response samples
- 200
[- {
- "avatar_url": "string",
- "description": "string",
- "email": "string",
- "full_name": "string",
- "id": 0,
- "location": "string",
- "name": "string",
- "repo_admin_change_team_access": true,
- "username": "string",
- "visibility": "string",
- "website": "string"
}
]
Get user permissions in organization
Authorizations:
path Parameters
username required | string username of user |
org required | string name of the organization |
Responses
Response samples
- 200
{- "can_create_repository": true,
- "can_read": true,
- "can_write": true,
- "is_admin": true,
- "is_owner": true
}
Gets all packages of an owner
Authorizations:
path Parameters
owner required | string owner of the packages |
query Parameters
page | integer page number of results to return (1-based) |
limit | integer page size of results |
type | string Enum: "alpine" "cargo" "chef" "composer" "conan" "conda" "container" "cran" "debian" "generic" "go" "helm" "maven" "npm" "nuget" "pub" "pypi" "rpm" "rubygems" "swift" "vagrant" package type filter |
q | string name filter |
Responses
Response samples
- 200
[- {
- "created_at": "2019-08-24T14:15:22Z",
- "creator": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "html_url": "string",
- "id": 0,
- "name": "string",
- "owner": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "repository": {
- "allow_merge_commits": true,
- "allow_rebase": true,
- "allow_rebase_explicit": true,
- "allow_rebase_update": true,
- "allow_squash_merge": true,
- "archived": true,
- "archived_at": "2019-08-24T14:15:22Z",
- "avatar_url": "string",
- "clone_url": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "default_allow_maintainer_edit": true,
- "default_branch": "string",
- "default_delete_branch_after_merge": true,
- "default_merge_style": "string",
- "description": "string",
- "empty": true,
- "external_tracker": {
- "external_tracker_format": "string",
- "external_tracker_regexp_pattern": "string",
- "external_tracker_style": "string",
- "external_tracker_url": "string"
}, - "external_wiki": {
- "external_wiki_url": "string"
}, - "fork": true,
- "forks_count": 0,
- "full_name": "string",
- "has_actions": true,
- "has_issues": true,
- "has_packages": true,
- "has_projects": true,
- "has_pull_requests": true,
- "has_releases": true,
- "has_wiki": true,
- "html_url": "string",
- "id": 0,
- "ignore_whitespace_conflicts": true,
- "internal": true,
- "internal_tracker": {
- "allow_only_contributors_to_track_time": true,
- "enable_issue_dependencies": true,
- "enable_time_tracker": true
}, - "language": "string",
- "languages_url": "string",
- "link": "string",
- "mirror": true,
- "mirror_interval": "string",
- "mirror_updated": "2019-08-24T14:15:22Z",
- "name": "string",
- "open_issues_count": 0,
- "open_pr_counter": 0,
- "original_url": "string",
- "owner": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "parent": { },
- "permissions": {
- "admin": true,
- "pull": true,
- "push": true
}, - "private": true,
- "release_counter": 0,
- "repo_transfer": {
- "doer": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "recipient": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "teams": [
- {
- "can_create_org_repo": true,
- "description": "string",
- "id": 0,
- "includes_all_repositories": true,
- "name": "string",
- "organization": {
- "avatar_url": "string",
- "description": "string",
- "email": "string",
- "full_name": "string",
- "id": 0,
- "location": "string",
- "name": "string",
- "repo_admin_change_team_access": true,
- "username": "string",
- "visibility": "string",
- "website": "string"
}, - "permission": "none",
- "units": [
- "repo.code",
- "repo.issues",
- "repo.ext_issues",
- "repo.wiki",
- "repo.pulls",
- "repo.releases",
- "repo.projects",
- "repo.ext_wiki"
], - "units_map": {
- "repo.code": "read",
- "repo.ext_issues": "none",
- "repo.ext_wiki": "none",
- "repo.issues": "write",
- "repo.projects": "none",
- "repo.pulls": "owner",
- "repo.releases": "none",
- "repo.wiki": "admin"
}
}
]
}, - "size": 0,
- "ssh_url": "string",
- "stars_count": 0,
- "template": true,
- "updated_at": "2019-08-24T14:15:22Z",
- "url": "string",
- "watchers_count": 0,
- "website": "string"
}, - "type": "string",
- "version": "string"
}
]
Gets a package
Authorizations:
path Parameters
owner required | string owner of the package |
type required | string type of the package |
name required | string name of the package |
version required | string version of the package |
Responses
Response samples
- 200
{- "created_at": "2019-08-24T14:15:22Z",
- "creator": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "html_url": "string",
- "id": 0,
- "name": "string",
- "owner": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "repository": {
- "allow_merge_commits": true,
- "allow_rebase": true,
- "allow_rebase_explicit": true,
- "allow_rebase_update": true,
- "allow_squash_merge": true,
- "archived": true,
- "archived_at": "2019-08-24T14:15:22Z",
- "avatar_url": "string",
- "clone_url": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "default_allow_maintainer_edit": true,
- "default_branch": "string",
- "default_delete_branch_after_merge": true,
- "default_merge_style": "string",
- "description": "string",
- "empty": true,
- "external_tracker": {
- "external_tracker_format": "string",
- "external_tracker_regexp_pattern": "string",
- "external_tracker_style": "string",
- "external_tracker_url": "string"
}, - "external_wiki": {
- "external_wiki_url": "string"
}, - "fork": true,
- "forks_count": 0,
- "full_name": "string",
- "has_actions": true,
- "has_issues": true,
- "has_packages": true,
- "has_projects": true,
- "has_pull_requests": true,
- "has_releases": true,
- "has_wiki": true,
- "html_url": "string",
- "id": 0,
- "ignore_whitespace_conflicts": true,
- "internal": true,
- "internal_tracker": {
- "allow_only_contributors_to_track_time": true,
- "enable_issue_dependencies": true,
- "enable_time_tracker": true
}, - "language": "string",
- "languages_url": "string",
- "link": "string",
- "mirror": true,
- "mirror_interval": "string",
- "mirror_updated": "2019-08-24T14:15:22Z",
- "name": "string",
- "open_issues_count": 0,
- "open_pr_counter": 0,
- "original_url": "string",
- "owner": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "parent": { },
- "permissions": {
- "admin": true,
- "pull": true,
- "push": true
}, - "private": true,
- "release_counter": 0,
- "repo_transfer": {
- "doer": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "recipient": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "teams": [
- {
- "can_create_org_repo": true,
- "description": "string",
- "id": 0,
- "includes_all_repositories": true,
- "name": "string",
- "organization": {
- "avatar_url": "string",
- "description": "string",
- "email": "string",
- "full_name": "string",
- "id": 0,
- "location": "string",
- "name": "string",
- "repo_admin_change_team_access": true,
- "username": "string",
- "visibility": "string",
- "website": "string"
}, - "permission": "none",
- "units": [
- "repo.code",
- "repo.issues",
- "repo.ext_issues",
- "repo.wiki",
- "repo.pulls",
- "repo.releases",
- "repo.projects",
- "repo.ext_wiki"
], - "units_map": {
- "repo.code": "read",
- "repo.ext_issues": "none",
- "repo.ext_wiki": "none",
- "repo.issues": "write",
- "repo.projects": "none",
- "repo.pulls": "owner",
- "repo.releases": "none",
- "repo.wiki": "admin"
}
}
]
}, - "size": 0,
- "ssh_url": "string",
- "stars_count": 0,
- "template": true,
- "updated_at": "2019-08-24T14:15:22Z",
- "url": "string",
- "watchers_count": 0,
- "website": "string"
}, - "type": "string",
- "version": "string"
}
Gets all files of a package
Authorizations:
path Parameters
owner required | string owner of the package |
type required | string type of the package |
name required | string name of the package |
version required | string version of the package |
Responses
Response samples
- 200
[- {
- "Size": 0,
- "id": 0,
- "md5": "string",
- "name": "string",
- "sha1": "string",
- "sha256": "string",
- "sha512": "string"
}
]
Search for issues across the repositories that the user has access to
Authorizations:
query Parameters
state | string whether issue is open or closed |
labels | string comma separated list of labels. Fetch only issues that have any of this labels. Non existent labels are discarded |
milestones | string comma separated list of milestone names. Fetch only issues that have any of this milestones. Non existent are discarded |
q | string search string |
priority_repo_id | integer <int64> repository to prioritize in the results |
type | string filter by type (issues / pulls) if set |
since | string <date-time> Only show notifications updated after the given time. This is a timestamp in RFC 3339 format |
before | string <date-time> Only show notifications updated before the given time. This is a timestamp in RFC 3339 format |
assigned | boolean filter (issues / pulls) assigned to you, default is false |
created | boolean filter (issues / pulls) created by you, default is false |
mentioned | boolean filter (issues / pulls) mentioning you, default is false |
review_requested | boolean filter pulls requesting your review, default is false |
reviewed | boolean filter pulls reviewed by you, default is false |
owner | string filter by owner |
team | string filter by team (requires organization owner parameter to be provided) |
page | integer page number of results to return (1-based) |
limit | integer page size of results |
Responses
Response samples
- 200
[- {
- "assets": [
- {
- "browser_download_url": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "download_count": 0,
- "id": 0,
- "name": "string",
- "size": 0,
- "uuid": "string"
}
], - "assignee": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "assignees": [
- {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}
], - "body": "string",
- "closed_at": "2019-08-24T14:15:22Z",
- "comments": 0,
- "created_at": "2019-08-24T14:15:22Z",
- "due_date": "2019-08-24T14:15:22Z",
- "html_url": "string",
- "id": 0,
- "is_locked": true,
- "labels": [
- {
- "color": "00aabb",
- "description": "string",
- "exclusive": false,
- "id": 0,
- "is_archived": false,
- "name": "string",
- "url": "string"
}
], - "milestone": {
- "closed_at": "2019-08-24T14:15:22Z",
- "closed_issues": 0,
- "created_at": "2019-08-24T14:15:22Z",
- "description": "string",
- "due_on": "2019-08-24T14:15:22Z",
- "id": 0,
- "open_issues": 0,
- "state": "string",
- "title": "string",
- "updated_at": "2019-08-24T14:15:22Z"
}, - "number": 0,
- "original_author": "string",
- "original_author_id": 0,
- "pin_order": 0,
- "pull_request": {
- "merged": true,
- "merged_at": "2019-08-24T14:15:22Z"
}, - "ref": "string",
- "repository": {
- "full_name": "string",
- "id": 0,
- "name": "string",
- "owner": "string"
}, - "state": "string",
- "title": "string",
- "updated_at": "2019-08-24T14:15:22Z",
- "url": "string",
- "user": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}
}
]
List a repository's issues
Authorizations:
path Parameters
owner required | string owner of the repo |
repo required | string name of the repo |
query Parameters
state | string Enum: "closed" "open" "all" whether issue is open or closed |
labels | string comma separated list of labels. Fetch only issues that have any of this labels. Non existent labels are discarded |
q | string search string |
type | string Enum: "issues" "pulls" filter by type (issues / pulls) if set |
milestones | string comma separated list of milestone names or ids. It uses names and fall back to ids. Fetch only issues that have any of this milestones. Non existent milestones are discarded |
since | string <date-time> Only show items updated after the given time. This is a timestamp in RFC 3339 format |
before | string <date-time> Only show items updated before the given time. This is a timestamp in RFC 3339 format |
created_by | string Only show items which were created by the the given user |
assigned_by | string Only show items for which the given user is assigned |
mentioned_by | string Only show items in which the given user was mentioned |
page | integer page number of results to return (1-based) |
limit | integer page size of results |
Responses
Response samples
- 200
[- {
- "assets": [
- {
- "browser_download_url": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "download_count": 0,
- "id": 0,
- "name": "string",
- "size": 0,
- "uuid": "string"
}
], - "assignee": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "assignees": [
- {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}
], - "body": "string",
- "closed_at": "2019-08-24T14:15:22Z",
- "comments": 0,
- "created_at": "2019-08-24T14:15:22Z",
- "due_date": "2019-08-24T14:15:22Z",
- "html_url": "string",
- "id": 0,
- "is_locked": true,
- "labels": [
- {
- "color": "00aabb",
- "description": "string",
- "exclusive": false,
- "id": 0,
- "is_archived": false,
- "name": "string",
- "url": "string"
}
], - "milestone": {
- "closed_at": "2019-08-24T14:15:22Z",
- "closed_issues": 0,
- "created_at": "2019-08-24T14:15:22Z",
- "description": "string",
- "due_on": "2019-08-24T14:15:22Z",
- "id": 0,
- "open_issues": 0,
- "state": "string",
- "title": "string",
- "updated_at": "2019-08-24T14:15:22Z"
}, - "number": 0,
- "original_author": "string",
- "original_author_id": 0,
- "pin_order": 0,
- "pull_request": {
- "merged": true,
- "merged_at": "2019-08-24T14:15:22Z"
}, - "ref": "string",
- "repository": {
- "full_name": "string",
- "id": 0,
- "name": "string",
- "owner": "string"
}, - "state": "string",
- "title": "string",
- "updated_at": "2019-08-24T14:15:22Z",
- "url": "string",
- "user": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}
}
]
Create an issue. If using deadline only the date will be taken into account, and time of day ignored.
Authorizations:
path Parameters
owner required | string owner of the repo |
repo required | string name of the repo |
Request Body schema: application/json
assignee | string deprecated |
assignees | Array of strings |
body | string |
closed | boolean |
due_date | string <date-time> |
labels | Array of integers <int64> [ items <int64 > ] list of label ids |
milestone | integer <int64> milestone id |
ref | string |
title required | string |
Responses
Request samples
- Payload
{- "assignee": "string",
- "assignees": [
- "string"
], - "body": "string",
- "closed": true,
- "due_date": "2019-08-24T14:15:22Z",
- "labels": [
- 0
], - "milestone": 0,
- "ref": "string",
- "title": "string"
}
Response samples
- 201
{- "assets": [
- {
- "browser_download_url": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "download_count": 0,
- "id": 0,
- "name": "string",
- "size": 0,
- "uuid": "string"
}
], - "assignee": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "assignees": [
- {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}
], - "body": "string",
- "closed_at": "2019-08-24T14:15:22Z",
- "comments": 0,
- "created_at": "2019-08-24T14:15:22Z",
- "due_date": "2019-08-24T14:15:22Z",
- "html_url": "string",
- "id": 0,
- "is_locked": true,
- "labels": [
- {
- "color": "00aabb",
- "description": "string",
- "exclusive": false,
- "id": 0,
- "is_archived": false,
- "name": "string",
- "url": "string"
}
], - "milestone": {
- "closed_at": "2019-08-24T14:15:22Z",
- "closed_issues": 0,
- "created_at": "2019-08-24T14:15:22Z",
- "description": "string",
- "due_on": "2019-08-24T14:15:22Z",
- "id": 0,
- "open_issues": 0,
- "state": "string",
- "title": "string",
- "updated_at": "2019-08-24T14:15:22Z"
}, - "number": 0,
- "original_author": "string",
- "original_author_id": 0,
- "pin_order": 0,
- "pull_request": {
- "merged": true,
- "merged_at": "2019-08-24T14:15:22Z"
}, - "ref": "string",
- "repository": {
- "full_name": "string",
- "id": 0,
- "name": "string",
- "owner": "string"
}, - "state": "string",
- "title": "string",
- "updated_at": "2019-08-24T14:15:22Z",
- "url": "string",
- "user": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}
}
List all comments in a repository
Authorizations:
path Parameters
owner required | string owner of the repo |
repo required | string name of the repo |
query Parameters
since | string <date-time> if provided, only comments updated since the provided time are returned. |
before | string <date-time> if provided, only comments updated before the provided time are returned. |
page | integer page number of results to return (1-based) |
limit | integer page size of results |
Responses
Response samples
- 200
[- {
- "assets": [
- {
- "browser_download_url": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "download_count": 0,
- "id": 0,
- "name": "string",
- "size": 0,
- "uuid": "string"
}
], - "body": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "html_url": "string",
- "id": 0,
- "issue_url": "string",
- "original_author": "string",
- "original_author_id": 0,
- "pull_request_url": "string",
- "updated_at": "2019-08-24T14:15:22Z",
- "user": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}
}
]
Get a comment
Authorizations:
path Parameters
owner required | string owner of the repo |
repo required | string name of the repo |
id required | integer <int64> id of the comment |
Responses
Response samples
- 200
{- "assets": [
- {
- "browser_download_url": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "download_count": 0,
- "id": 0,
- "name": "string",
- "size": 0,
- "uuid": "string"
}
], - "body": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "html_url": "string",
- "id": 0,
- "issue_url": "string",
- "original_author": "string",
- "original_author_id": 0,
- "pull_request_url": "string",
- "updated_at": "2019-08-24T14:15:22Z",
- "user": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}
}
Edit a comment
Authorizations:
path Parameters
owner required | string owner of the repo |
repo required | string name of the repo |
id required | integer <int64> id of the comment to edit |
Request Body schema: application/json
body required | string |
Responses
Request samples
- Payload
{- "body": "string"
}
Response samples
- 200
{- "assets": [
- {
- "browser_download_url": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "download_count": 0,
- "id": 0,
- "name": "string",
- "size": 0,
- "uuid": "string"
}
], - "body": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "html_url": "string",
- "id": 0,
- "issue_url": "string",
- "original_author": "string",
- "original_author_id": 0,
- "pull_request_url": "string",
- "updated_at": "2019-08-24T14:15:22Z",
- "user": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}
}
List comment's attachments
Authorizations:
path Parameters
owner required | string owner of the repo |
repo required | string name of the repo |
id required | integer <int64> id of the comment |
Responses
Response samples
- 200
[- {
- "browser_download_url": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "download_count": 0,
- "id": 0,
- "name": "string",
- "size": 0,
- "uuid": "string"
}
]
Create a comment attachment
Authorizations:
path Parameters
owner required | string owner of the repo |
repo required | string name of the repo |
id required | integer <int64> id of the comment |
query Parameters
name | string name of the attachment |
Request Body schema: multipart/form-datarequired
attachment required | string <binary> attachment to upload |
Responses
Response samples
- 201
{- "browser_download_url": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "download_count": 0,
- "id": 0,
- "name": "string",
- "size": 0,
- "uuid": "string"
}
Get a comment attachment
Authorizations:
path Parameters
owner required | string owner of the repo |
repo required | string name of the repo |
id required | integer <int64> id of the comment |
attachment_id required | integer <int64> id of the attachment to get |
Responses
Response samples
- 200
{- "browser_download_url": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "download_count": 0,
- "id": 0,
- "name": "string",
- "size": 0,
- "uuid": "string"
}
Delete a comment attachment
Authorizations:
path Parameters
owner required | string owner of the repo |
repo required | string name of the repo |
id required | integer <int64> id of the comment |
attachment_id required | integer <int64> id of the attachment to delete |
Responses
Edit a comment attachment
Authorizations:
path Parameters
owner required | string owner of the repo |
repo required | string name of the repo |
id required | integer <int64> id of the comment |
attachment_id required | integer <int64> id of the attachment to edit |
Request Body schema: application/json
name | string |
Responses
Request samples
- Payload
{- "name": "string"
}
Response samples
- 201
{- "browser_download_url": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "download_count": 0,
- "id": 0,
- "name": "string",
- "size": 0,
- "uuid": "string"
}
Get a list of reactions from a comment of an issue
Authorizations:
path Parameters
owner required | string owner of the repo |
repo required | string name of the repo |
id required | integer <int64> id of the comment to edit |
Responses
Response samples
- 200
[- {
- "content": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "user": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}
}
]
Add a reaction to a comment of an issue
Authorizations:
path Parameters
owner required | string owner of the repo |
repo required | string name of the repo |
id required | integer <int64> id of the comment to edit |
Request Body schema: application/json
content | string |
Responses
Request samples
- Payload
{- "content": "string"
}
Response samples
- 200
- 201
{- "content": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "user": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}
}
Remove a reaction from a comment of an issue
Authorizations:
path Parameters
owner required | string owner of the repo |
repo required | string name of the repo |
id required | integer <int64> id of the comment to edit |
Request Body schema: application/json
content | string |
Responses
Request samples
- Payload
{- "content": "string"
}
Get an issue
Authorizations:
path Parameters
owner required | string owner of the repo |
repo required | string name of the repo |
index required | integer <int64> index of the issue to get |
Responses
Response samples
- 200
{- "assets": [
- {
- "browser_download_url": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "download_count": 0,
- "id": 0,
- "name": "string",
- "size": 0,
- "uuid": "string"
}
], - "assignee": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "assignees": [
- {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}
], - "body": "string",
- "closed_at": "2019-08-24T14:15:22Z",
- "comments": 0,
- "created_at": "2019-08-24T14:15:22Z",
- "due_date": "2019-08-24T14:15:22Z",
- "html_url": "string",
- "id": 0,
- "is_locked": true,
- "labels": [
- {
- "color": "00aabb",
- "description": "string",
- "exclusive": false,
- "id": 0,
- "is_archived": false,
- "name": "string",
- "url": "string"
}
], - "milestone": {
- "closed_at": "2019-08-24T14:15:22Z",
- "closed_issues": 0,
- "created_at": "2019-08-24T14:15:22Z",
- "description": "string",
- "due_on": "2019-08-24T14:15:22Z",
- "id": 0,
- "open_issues": 0,
- "state": "string",
- "title": "string",
- "updated_at": "2019-08-24T14:15:22Z"
}, - "number": 0,
- "original_author": "string",
- "original_author_id": 0,
- "pin_order": 0,
- "pull_request": {
- "merged": true,
- "merged_at": "2019-08-24T14:15:22Z"
}, - "ref": "string",
- "repository": {
- "full_name": "string",
- "id": 0,
- "name": "string",
- "owner": "string"
}, - "state": "string",
- "title": "string",
- "updated_at": "2019-08-24T14:15:22Z",
- "url": "string",
- "user": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}
}
Edit an issue. If using deadline only the date will be taken into account, and time of day ignored.
Authorizations:
path Parameters
owner required | string owner of the repo |
repo required | string name of the repo |
index required | integer <int64> index of the issue to edit |
Request Body schema: application/json
assignee | string deprecated |
assignees | Array of strings |
body | string |
due_date | string <date-time> |
milestone | integer <int64> |
ref | string |
state | string |
title | string |
unset_due_date | boolean |
Responses
Request samples
- Payload
{- "assignee": "string",
- "assignees": [
- "string"
], - "body": "string",
- "due_date": "2019-08-24T14:15:22Z",
- "milestone": 0,
- "ref": "string",
- "state": "string",
- "title": "string",
- "unset_due_date": true
}
Response samples
- 201
{- "assets": [
- {
- "browser_download_url": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "download_count": 0,
- "id": 0,
- "name": "string",
- "size": 0,
- "uuid": "string"
}
], - "assignee": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "assignees": [
- {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}
], - "body": "string",
- "closed_at": "2019-08-24T14:15:22Z",
- "comments": 0,
- "created_at": "2019-08-24T14:15:22Z",
- "due_date": "2019-08-24T14:15:22Z",
- "html_url": "string",
- "id": 0,
- "is_locked": true,
- "labels": [
- {
- "color": "00aabb",
- "description": "string",
- "exclusive": false,
- "id": 0,
- "is_archived": false,
- "name": "string",
- "url": "string"
}
], - "milestone": {
- "closed_at": "2019-08-24T14:15:22Z",
- "closed_issues": 0,
- "created_at": "2019-08-24T14:15:22Z",
- "description": "string",
- "due_on": "2019-08-24T14:15:22Z",
- "id": 0,
- "open_issues": 0,
- "state": "string",
- "title": "string",
- "updated_at": "2019-08-24T14:15:22Z"
}, - "number": 0,
- "original_author": "string",
- "original_author_id": 0,
- "pin_order": 0,
- "pull_request": {
- "merged": true,
- "merged_at": "2019-08-24T14:15:22Z"
}, - "ref": "string",
- "repository": {
- "full_name": "string",
- "id": 0,
- "name": "string",
- "owner": "string"
}, - "state": "string",
- "title": "string",
- "updated_at": "2019-08-24T14:15:22Z",
- "url": "string",
- "user": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}
}
List issue's attachments
Authorizations:
path Parameters
owner required | string owner of the repo |
repo required | string name of the repo |
index required | integer <int64> index of the issue |
Responses
Response samples
- 200
[- {
- "browser_download_url": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "download_count": 0,
- "id": 0,
- "name": "string",
- "size": 0,
- "uuid": "string"
}
]
Create an issue attachment
Authorizations:
path Parameters
owner required | string owner of the repo |
repo required | string name of the repo |
index required | integer <int64> index of the issue |
query Parameters
name | string name of the attachment |
Request Body schema: multipart/form-datarequired
attachment required | string <binary> attachment to upload |
Responses
Response samples
- 201
{- "browser_download_url": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "download_count": 0,
- "id": 0,
- "name": "string",
- "size": 0,
- "uuid": "string"
}
Get an issue attachment
Authorizations:
path Parameters
owner required | string owner of the repo |
repo required | string name of the repo |
index required | integer <int64> index of the issue |
attachment_id required | integer <int64> id of the attachment to get |
Responses
Response samples
- 200
{- "browser_download_url": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "download_count": 0,
- "id": 0,
- "name": "string",
- "size": 0,
- "uuid": "string"
}
Delete an issue attachment
Authorizations:
path Parameters
owner required | string owner of the repo |
repo required | string name of the repo |
index required | integer <int64> index of the issue |
attachment_id required | integer <int64> id of the attachment to delete |
Responses
Edit an issue attachment
Authorizations:
path Parameters
owner required | string owner of the repo |
repo required | string name of the repo |
index required | integer <int64> index of the issue |
attachment_id required | integer <int64> id of the attachment to edit |
Request Body schema: application/json
name | string |
Responses
Request samples
- Payload
{- "name": "string"
}
Response samples
- 201
{- "browser_download_url": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "download_count": 0,
- "id": 0,
- "name": "string",
- "size": 0,
- "uuid": "string"
}
List issues that are blocked by this issue
Authorizations:
path Parameters
owner required | string owner of the repo |
repo required | string name of the repo |
index required | string index of the issue |
query Parameters
page | integer page number of results to return (1-based) |
limit | integer page size of results |
Responses
Response samples
- 200
[- {
- "assets": [
- {
- "browser_download_url": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "download_count": 0,
- "id": 0,
- "name": "string",
- "size": 0,
- "uuid": "string"
}
], - "assignee": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "assignees": [
- {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}
], - "body": "string",
- "closed_at": "2019-08-24T14:15:22Z",
- "comments": 0,
- "created_at": "2019-08-24T14:15:22Z",
- "due_date": "2019-08-24T14:15:22Z",
- "html_url": "string",
- "id": 0,
- "is_locked": true,
- "labels": [
- {
- "color": "00aabb",
- "description": "string",
- "exclusive": false,
- "id": 0,
- "is_archived": false,
- "name": "string",
- "url": "string"
}
], - "milestone": {
- "closed_at": "2019-08-24T14:15:22Z",
- "closed_issues": 0,
- "created_at": "2019-08-24T14:15:22Z",
- "description": "string",
- "due_on": "2019-08-24T14:15:22Z",
- "id": 0,
- "open_issues": 0,
- "state": "string",
- "title": "string",
- "updated_at": "2019-08-24T14:15:22Z"
}, - "number": 0,
- "original_author": "string",
- "original_author_id": 0,
- "pin_order": 0,
- "pull_request": {
- "merged": true,
- "merged_at": "2019-08-24T14:15:22Z"
}, - "ref": "string",
- "repository": {
- "full_name": "string",
- "id": 0,
- "name": "string",
- "owner": "string"
}, - "state": "string",
- "title": "string",
- "updated_at": "2019-08-24T14:15:22Z",
- "url": "string",
- "user": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}
}
]
Block the issue given in the body by the issue in path
Authorizations:
path Parameters
owner required | string owner of the repo |
repo required | string name of the repo |
index required | string index of the issue |
Request Body schema:
index | integer <int64> |
owner | string |
repo | string |
Responses
Request samples
- Payload
{- "index": 0,
- "owner": "string",
- "repo": "string"
}
Response samples
- 201
{- "assets": [
- {
- "browser_download_url": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "download_count": 0,
- "id": 0,
- "name": "string",
- "size": 0,
- "uuid": "string"
}
], - "assignee": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "assignees": [
- {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}
], - "body": "string",
- "closed_at": "2019-08-24T14:15:22Z",
- "comments": 0,
- "created_at": "2019-08-24T14:15:22Z",
- "due_date": "2019-08-24T14:15:22Z",
- "html_url": "string",
- "id": 0,
- "is_locked": true,
- "labels": [
- {
- "color": "00aabb",
- "description": "string",
- "exclusive": false,
- "id": 0,
- "is_archived": false,
- "name": "string",
- "url": "string"
}
], - "milestone": {
- "closed_at": "2019-08-24T14:15:22Z",
- "closed_issues": 0,
- "created_at": "2019-08-24T14:15:22Z",
- "description": "string",
- "due_on": "2019-08-24T14:15:22Z",
- "id": 0,
- "open_issues": 0,
- "state": "string",
- "title": "string",
- "updated_at": "2019-08-24T14:15:22Z"
}, - "number": 0,
- "original_author": "string",
- "original_author_id": 0,
- "pin_order": 0,
- "pull_request": {
- "merged": true,
- "merged_at": "2019-08-24T14:15:22Z"
}, - "ref": "string",
- "repository": {
- "full_name": "string",
- "id": 0,
- "name": "string",
- "owner": "string"
}, - "state": "string",
- "title": "string",
- "updated_at": "2019-08-24T14:15:22Z",
- "url": "string",
- "user": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}
}
Unblock the issue given in the body by the issue in path
Authorizations:
path Parameters
owner required | string owner of the repo |
repo required | string name of the repo |
index required | string index of the issue |
Request Body schema:
index | integer <int64> |
owner | string |
repo | string |
Responses
Request samples
- Payload
{- "index": 0,
- "owner": "string",
- "repo": "string"
}
Response samples
- 200
{- "assets": [
- {
- "browser_download_url": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "download_count": 0,
- "id": 0,
- "name": "string",
- "size": 0,
- "uuid": "string"
}
], - "assignee": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "assignees": [
- {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}
], - "body": "string",
- "closed_at": "2019-08-24T14:15:22Z",
- "comments": 0,
- "created_at": "2019-08-24T14:15:22Z",
- "due_date": "2019-08-24T14:15:22Z",
- "html_url": "string",
- "id": 0,
- "is_locked": true,
- "labels": [
- {
- "color": "00aabb",
- "description": "string",
- "exclusive": false,
- "id": 0,
- "is_archived": false,
- "name": "string",
- "url": "string"
}
], - "milestone": {
- "closed_at": "2019-08-24T14:15:22Z",
- "closed_issues": 0,
- "created_at": "2019-08-24T14:15:22Z",
- "description": "string",
- "due_on": "2019-08-24T14:15:22Z",
- "id": 0,
- "open_issues": 0,
- "state": "string",
- "title": "string",
- "updated_at": "2019-08-24T14:15:22Z"
}, - "number": 0,
- "original_author": "string",
- "original_author_id": 0,
- "pin_order": 0,
- "pull_request": {
- "merged": true,
- "merged_at": "2019-08-24T14:15:22Z"
}, - "ref": "string",
- "repository": {
- "full_name": "string",
- "id": 0,
- "name": "string",
- "owner": "string"
}, - "state": "string",
- "title": "string",
- "updated_at": "2019-08-24T14:15:22Z",
- "url": "string",
- "user": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}
}
List all comments on an issue
Authorizations:
path Parameters
owner required | string owner of the repo |
repo required | string name of the repo |
index required | integer <int64> index of the issue |
query Parameters
since | string <date-time> if provided, only comments updated since the specified time are returned. |
before | string <date-time> if provided, only comments updated before the provided time are returned. |
Responses
Response samples
- 200
[- {
- "assets": [
- {
- "browser_download_url": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "download_count": 0,
- "id": 0,
- "name": "string",
- "size": 0,
- "uuid": "string"
}
], - "body": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "html_url": "string",
- "id": 0,
- "issue_url": "string",
- "original_author": "string",
- "original_author_id": 0,
- "pull_request_url": "string",
- "updated_at": "2019-08-24T14:15:22Z",
- "user": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}
}
]
Add a comment to an issue
Authorizations:
path Parameters
owner required | string owner of the repo |
repo required | string name of the repo |
index required | integer <int64> index of the issue |
Request Body schema: application/json
body required | string |
Responses
Request samples
- Payload
{- "body": "string"
}
Response samples
- 201
{- "assets": [
- {
- "browser_download_url": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "download_count": 0,
- "id": 0,
- "name": "string",
- "size": 0,
- "uuid": "string"
}
], - "body": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "html_url": "string",
- "id": 0,
- "issue_url": "string",
- "original_author": "string",
- "original_author_id": 0,
- "pull_request_url": "string",
- "updated_at": "2019-08-24T14:15:22Z",
- "user": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}
}
Delete a comment Deprecated
Authorizations:
path Parameters
owner required | string owner of the repo |
repo required | string name of the repo |
index required | integer this parameter is ignored |
id required | integer <int64> id of comment to delete |
Responses
Edit a comment Deprecated
Authorizations:
path Parameters
owner required | string owner of the repo |
repo required | string name of the repo |
index required | integer this parameter is ignored |
id required | integer <int64> id of the comment to edit |
Request Body schema: application/json
body required | string |
Responses
Request samples
- Payload
{- "body": "string"
}
Response samples
- 200
{- "assets": [
- {
- "browser_download_url": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "download_count": 0,
- "id": 0,
- "name": "string",
- "size": 0,
- "uuid": "string"
}
], - "body": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "html_url": "string",
- "id": 0,
- "issue_url": "string",
- "original_author": "string",
- "original_author_id": 0,
- "pull_request_url": "string",
- "updated_at": "2019-08-24T14:15:22Z",
- "user": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}
}
Set an issue deadline. If set to null, the deadline is deleted. If using deadline only the date will be taken into account, and time of day ignored.
Authorizations:
path Parameters
owner required | string owner of the repo |
repo required | string name of the repo |
index required | integer <int64> index of the issue to create or update a deadline on |
Request Body schema: application/json
due_date required | string <date-time> |
Responses
Request samples
- Payload
{- "due_date": "2019-08-24T14:15:22Z"
}
Response samples
- 201
{- "due_date": "2019-08-24T14:15:22Z"
}
List an issue's dependencies, i.e all issues that block this issue.
Authorizations:
path Parameters
owner required | string owner of the repo |
repo required | string name of the repo |
index required | string index of the issue |
query Parameters
page | integer page number of results to return (1-based) |
limit | integer page size of results |
Responses
Response samples
- 200
[- {
- "assets": [
- {
- "browser_download_url": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "download_count": 0,
- "id": 0,
- "name": "string",
- "size": 0,
- "uuid": "string"
}
], - "assignee": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "assignees": [
- {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}
], - "body": "string",
- "closed_at": "2019-08-24T14:15:22Z",
- "comments": 0,
- "created_at": "2019-08-24T14:15:22Z",
- "due_date": "2019-08-24T14:15:22Z",
- "html_url": "string",
- "id": 0,
- "is_locked": true,
- "labels": [
- {
- "color": "00aabb",
- "description": "string",
- "exclusive": false,
- "id": 0,
- "is_archived": false,
- "name": "string",
- "url": "string"
}
], - "milestone": {
- "closed_at": "2019-08-24T14:15:22Z",
- "closed_issues": 0,
- "created_at": "2019-08-24T14:15:22Z",
- "description": "string",
- "due_on": "2019-08-24T14:15:22Z",
- "id": 0,
- "open_issues": 0,
- "state": "string",
- "title": "string",
- "updated_at": "2019-08-24T14:15:22Z"
}, - "number": 0,
- "original_author": "string",
- "original_author_id": 0,
- "pin_order": 0,
- "pull_request": {
- "merged": true,
- "merged_at": "2019-08-24T14:15:22Z"
}, - "ref": "string",
- "repository": {
- "full_name": "string",
- "id": 0,
- "name": "string",
- "owner": "string"
}, - "state": "string",
- "title": "string",
- "updated_at": "2019-08-24T14:15:22Z",
- "url": "string",
- "user": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}
}
]
Make the issue in the url depend on the issue in the form.
Authorizations:
path Parameters
owner required | string owner of the repo |
repo required | string name of the repo |
index required | string index of the issue |
Request Body schema:
index | integer <int64> |
owner | string |
repo | string |
Responses
Request samples
- Payload
{- "index": 0,
- "owner": "string",
- "repo": "string"
}
Response samples
- 201
{- "assets": [
- {
- "browser_download_url": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "download_count": 0,
- "id": 0,
- "name": "string",
- "size": 0,
- "uuid": "string"
}
], - "assignee": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "assignees": [
- {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}
], - "body": "string",
- "closed_at": "2019-08-24T14:15:22Z",
- "comments": 0,
- "created_at": "2019-08-24T14:15:22Z",
- "due_date": "2019-08-24T14:15:22Z",
- "html_url": "string",
- "id": 0,
- "is_locked": true,
- "labels": [
- {
- "color": "00aabb",
- "description": "string",
- "exclusive": false,
- "id": 0,
- "is_archived": false,
- "name": "string",
- "url": "string"
}
], - "milestone": {
- "closed_at": "2019-08-24T14:15:22Z",
- "closed_issues": 0,
- "created_at": "2019-08-24T14:15:22Z",
- "description": "string",
- "due_on": "2019-08-24T14:15:22Z",
- "id": 0,
- "open_issues": 0,
- "state": "string",
- "title": "string",
- "updated_at": "2019-08-24T14:15:22Z"
}, - "number": 0,
- "original_author": "string",
- "original_author_id": 0,
- "pin_order": 0,
- "pull_request": {
- "merged": true,
- "merged_at": "2019-08-24T14:15:22Z"
}, - "ref": "string",
- "repository": {
- "full_name": "string",
- "id": 0,
- "name": "string",
- "owner": "string"
}, - "state": "string",
- "title": "string",
- "updated_at": "2019-08-24T14:15:22Z",
- "url": "string",
- "user": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}
}
Remove an issue dependency
Authorizations:
path Parameters
owner required | string owner of the repo |
repo required | string name of the repo |
index required | string index of the issue |
Request Body schema:
index | integer <int64> |
owner | string |
repo | string |
Responses
Request samples
- Payload
{- "index": 0,
- "owner": "string",
- "repo": "string"
}
Response samples
- 200
{- "assets": [
- {
- "browser_download_url": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "download_count": 0,
- "id": 0,
- "name": "string",
- "size": 0,
- "uuid": "string"
}
], - "assignee": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "assignees": [
- {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}
], - "body": "string",
- "closed_at": "2019-08-24T14:15:22Z",
- "comments": 0,
- "created_at": "2019-08-24T14:15:22Z",
- "due_date": "2019-08-24T14:15:22Z",
- "html_url": "string",
- "id": 0,
- "is_locked": true,
- "labels": [
- {
- "color": "00aabb",
- "description": "string",
- "exclusive": false,
- "id": 0,
- "is_archived": false,
- "name": "string",
- "url": "string"
}
], - "milestone": {
- "closed_at": "2019-08-24T14:15:22Z",
- "closed_issues": 0,
- "created_at": "2019-08-24T14:15:22Z",
- "description": "string",
- "due_on": "2019-08-24T14:15:22Z",
- "id": 0,
- "open_issues": 0,
- "state": "string",
- "title": "string",
- "updated_at": "2019-08-24T14:15:22Z"
}, - "number": 0,
- "original_author": "string",
- "original_author_id": 0,
- "pin_order": 0,
- "pull_request": {
- "merged": true,
- "merged_at": "2019-08-24T14:15:22Z"
}, - "ref": "string",
- "repository": {
- "full_name": "string",
- "id": 0,
- "name": "string",
- "owner": "string"
}, - "state": "string",
- "title": "string",
- "updated_at": "2019-08-24T14:15:22Z",
- "url": "string",
- "user": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}
}
Get an issue's labels
Authorizations:
path Parameters
owner required | string owner of the repo |
repo required | string name of the repo |
index required | integer <int64> index of the issue |
Responses
Response samples
- 200
[- {
- "color": "00aabb",
- "description": "string",
- "exclusive": false,
- "id": 0,
- "is_archived": false,
- "name": "string",
- "url": "string"
}
]
Replace an issue's labels
Authorizations:
path Parameters
owner required | string owner of the repo |
repo required | string name of the repo |
index required | integer <int64> index of the issue |
Request Body schema: application/json
labels | Array of integers <int64> [ items <int64 > ] list of label IDs |
Responses
Request samples
- Payload
{- "labels": [
- 0
]
}
Response samples
- 200
[- {
- "color": "00aabb",
- "description": "string",
- "exclusive": false,
- "id": 0,
- "is_archived": false,
- "name": "string",
- "url": "string"
}
]
Add a label to an issue
Authorizations:
path Parameters
owner required | string owner of the repo |
repo required | string name of the repo |
index required | integer <int64> index of the issue |
Request Body schema: application/json
labels | Array of integers <int64> [ items <int64 > ] list of label IDs |
Responses
Request samples
- Payload
{- "labels": [
- 0
]
}
Response samples
- 200
[- {
- "color": "00aabb",
- "description": "string",
- "exclusive": false,
- "id": 0,
- "is_archived": false,
- "name": "string",
- "url": "string"
}
]
Remove a label from an issue
Authorizations:
path Parameters
owner required | string owner of the repo |
repo required | string name of the repo |
index required | integer <int64> index of the issue |
id required | integer <int64> id of the label to remove |
Responses
Moves the Pin to the given Position
Authorizations:
path Parameters
owner required | string owner of the repo |
repo required | string name of the repo |
index required | integer <int64> index of issue |
position required | integer <int64> the new position |
Responses
Get a list reactions of an issue
Authorizations:
path Parameters
owner required | string owner of the repo |
repo required | string name of the repo |
index required | integer <int64> index of the issue |
query Parameters
page | integer page number of results to return (1-based) |
limit | integer page size of results |
Responses
Response samples
- 200
[- {
- "content": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "user": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}
}
]
Add a reaction to an issue
Authorizations:
path Parameters
owner required | string owner of the repo |
repo required | string name of the repo |
index required | integer <int64> index of the issue |
Request Body schema: application/json
content | string |
Responses
Request samples
- Payload
{- "content": "string"
}
Response samples
- 200
- 201
{- "content": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "user": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}
}
Remove a reaction from an issue
Authorizations:
path Parameters
owner required | string owner of the repo |
repo required | string name of the repo |
index required | integer <int64> index of the issue |
Request Body schema: application/json
content | string |
Responses
Request samples
- Payload
{- "content": "string"
}
Delete an issue's existing stopwatch.
Authorizations:
path Parameters
owner required | string owner of the repo |
repo required | string name of the repo |
index required | integer <int64> index of the issue to stop the stopwatch on |
Responses
Stop an issue's existing stopwatch.
Authorizations:
path Parameters
owner required | string owner of the repo |
repo required | string name of the repo |
index required | integer <int64> index of the issue to stop the stopwatch on |
Responses
Get users who subscribed on an issue.
Authorizations:
path Parameters
owner required | string owner of the repo |
repo required | string name of the repo |
index required | integer <int64> index of the issue |
query Parameters
page | integer page number of results to return (1-based) |
limit | integer page size of results |
Responses
Response samples
- 200
[- {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}
]
Check if user is subscribed to an issue
Authorizations:
path Parameters
owner required | string owner of the repo |
repo required | string name of the repo |
index required | integer <int64> index of the issue |
Responses
Response samples
- 200
{- "created_at": "2019-08-24T14:15:22Z",
- "ignored": true,
- "reason": null,
- "repository_url": "string",
- "subscribed": true,
- "url": "string"
}
Subscribe user to issue
Authorizations:
path Parameters
owner required | string owner of the repo |
repo required | string name of the repo |
index required | integer <int64> index of the issue |
user required | string user to subscribe |
Responses
Unsubscribe user from issue
Authorizations:
path Parameters
owner required | string owner of the repo |
repo required | string name of the repo |
index required | integer <int64> index of the issue |
user required | string user witch unsubscribe |
Responses
List all comments and events on an issue
Authorizations:
path Parameters
owner required | string owner of the repo |
repo required | string name of the repo |
index required | integer <int64> index of the issue |
query Parameters
since | string <date-time> if provided, only comments updated since the specified time are returned. |
page | integer page number of results to return (1-based) |
limit | integer page size of results |
before | string <date-time> if provided, only comments updated before the provided time are returned. |
Responses
Response samples
- 200
[- {
- "assignee": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "assignee_team": {
- "can_create_org_repo": true,
- "description": "string",
- "id": 0,
- "includes_all_repositories": true,
- "name": "string",
- "organization": {
- "avatar_url": "string",
- "description": "string",
- "email": "string",
- "full_name": "string",
- "id": 0,
- "location": "string",
- "name": "string",
- "repo_admin_change_team_access": true,
- "username": "string",
- "visibility": "string",
- "website": "string"
}, - "permission": "none",
- "units": [
- "repo.code",
- "repo.issues",
- "repo.ext_issues",
- "repo.wiki",
- "repo.pulls",
- "repo.releases",
- "repo.projects",
- "repo.ext_wiki"
], - "units_map": {
- "repo.code": "read",
- "repo.ext_issues": "none",
- "repo.ext_wiki": "none",
- "repo.issues": "write",
- "repo.projects": "none",
- "repo.pulls": "owner",
- "repo.releases": "none",
- "repo.wiki": "admin"
}
}, - "body": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "dependent_issue": {
- "assets": [
- {
- "browser_download_url": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "download_count": 0,
- "id": 0,
- "name": "string",
- "size": 0,
- "uuid": "string"
}
], - "assignee": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "assignees": [
- {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}
], - "body": "string",
- "closed_at": "2019-08-24T14:15:22Z",
- "comments": 0,
- "created_at": "2019-08-24T14:15:22Z",
- "due_date": "2019-08-24T14:15:22Z",
- "html_url": "string",
- "id": 0,
- "is_locked": true,
- "labels": [
- {
- "color": "00aabb",
- "description": "string",
- "exclusive": false,
- "id": 0,
- "is_archived": false,
- "name": "string",
- "url": "string"
}
], - "milestone": {
- "closed_at": "2019-08-24T14:15:22Z",
- "closed_issues": 0,
- "created_at": "2019-08-24T14:15:22Z",
- "description": "string",
- "due_on": "2019-08-24T14:15:22Z",
- "id": 0,
- "open_issues": 0,
- "state": "string",
- "title": "string",
- "updated_at": "2019-08-24T14:15:22Z"
}, - "number": 0,
- "original_author": "string",
- "original_author_id": 0,
- "pin_order": 0,
- "pull_request": {
- "merged": true,
- "merged_at": "2019-08-24T14:15:22Z"
}, - "ref": "string",
- "repository": {
- "full_name": "string",
- "id": 0,
- "name": "string",
- "owner": "string"
}, - "state": "string",
- "title": "string",
- "updated_at": "2019-08-24T14:15:22Z",
- "url": "string",
- "user": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}
}, - "html_url": "string",
- "id": 0,
- "issue_url": "string",
- "label": {
- "color": "00aabb",
- "description": "string",
- "exclusive": false,
- "id": 0,
- "is_archived": false,
- "name": "string",
- "url": "string"
}, - "milestone": {
- "closed_at": "2019-08-24T14:15:22Z",
- "closed_issues": 0,
- "created_at": "2019-08-24T14:15:22Z",
- "description": "string",
- "due_on": "2019-08-24T14:15:22Z",
- "id": 0,
- "open_issues": 0,
- "state": "string",
- "title": "string",
- "updated_at": "2019-08-24T14:15:22Z"
}, - "new_ref": "string",
- "new_title": "string",
- "old_milestone": {
- "closed_at": "2019-08-24T14:15:22Z",
- "closed_issues": 0,
- "created_at": "2019-08-24T14:15:22Z",
- "description": "string",
- "due_on": "2019-08-24T14:15:22Z",
- "id": 0,
- "open_issues": 0,
- "state": "string",
- "title": "string",
- "updated_at": "2019-08-24T14:15:22Z"
}, - "old_project_id": 0,
- "old_ref": "string",
- "old_title": "string",
- "project_id": 0,
- "pull_request_url": "string",
- "ref_action": "string",
- "ref_comment": {
- "assets": [
- {
- "browser_download_url": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "download_count": 0,
- "id": 0,
- "name": "string",
- "size": 0,
- "uuid": "string"
}
], - "body": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "html_url": "string",
- "id": 0,
- "issue_url": "string",
- "original_author": "string",
- "original_author_id": 0,
- "pull_request_url": "string",
- "updated_at": "2019-08-24T14:15:22Z",
- "user": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}
}, - "ref_commit_sha": "string",
- "ref_issue": {
- "assets": [
- {
- "browser_download_url": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "download_count": 0,
- "id": 0,
- "name": "string",
- "size": 0,
- "uuid": "string"
}
], - "assignee": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "assignees": [
- {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}
], - "body": "string",
- "closed_at": "2019-08-24T14:15:22Z",
- "comments": 0,
- "created_at": "2019-08-24T14:15:22Z",
- "due_date": "2019-08-24T14:15:22Z",
- "html_url": "string",
- "id": 0,
- "is_locked": true,
- "labels": [
- {
- "color": "00aabb",
- "description": "string",
- "exclusive": false,
- "id": 0,
- "is_archived": false,
- "name": "string",
- "url": "string"
}
], - "milestone": {
- "closed_at": "2019-08-24T14:15:22Z",
- "closed_issues": 0,
- "created_at": "2019-08-24T14:15:22Z",
- "description": "string",
- "due_on": "2019-08-24T14:15:22Z",
- "id": 0,
- "open_issues": 0,
- "state": "string",
- "title": "string",
- "updated_at": "2019-08-24T14:15:22Z"
}, - "number": 0,
- "original_author": "string",
- "original_author_id": 0,
- "pin_order": 0,
- "pull_request": {
- "merged": true,
- "merged_at": "2019-08-24T14:15:22Z"
}, - "ref": "string",
- "repository": {
- "full_name": "string",
- "id": 0,
- "name": "string",
- "owner": "string"
}, - "state": "string",
- "title": "string",
- "updated_at": "2019-08-24T14:15:22Z",
- "url": "string",
- "user": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}
}, - "removed_assignee": true,
- "resolve_doer": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "review_id": 0,
- "tracked_time": {
- "created": "2019-08-24T14:15:22Z",
- "id": 0,
- "issue": {
- "assets": [
- {
- "browser_download_url": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "download_count": 0,
- "id": 0,
- "name": "string",
- "size": 0,
- "uuid": "string"
}
], - "assignee": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "assignees": [
- {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}
], - "body": "string",
- "closed_at": "2019-08-24T14:15:22Z",
- "comments": 0,
- "created_at": "2019-08-24T14:15:22Z",
- "due_date": "2019-08-24T14:15:22Z",
- "html_url": "string",
- "id": 0,
- "is_locked": true,
- "labels": [
- {
- "color": "00aabb",
- "description": "string",
- "exclusive": false,
- "id": 0,
- "is_archived": false,
- "name": "string",
- "url": "string"
}
], - "milestone": {
- "closed_at": "2019-08-24T14:15:22Z",
- "closed_issues": 0,
- "created_at": "2019-08-24T14:15:22Z",
- "description": "string",
- "due_on": "2019-08-24T14:15:22Z",
- "id": 0,
- "open_issues": 0,
- "state": "string",
- "title": "string",
- "updated_at": "2019-08-24T14:15:22Z"
}, - "number": 0,
- "original_author": "string",
- "original_author_id": 0,
- "pin_order": 0,
- "pull_request": {
- "merged": true,
- "merged_at": "2019-08-24T14:15:22Z"
}, - "ref": "string",
- "repository": {
- "full_name": "string",
- "id": 0,
- "name": "string",
- "owner": "string"
}, - "state": "string",
- "title": "string",
- "updated_at": "2019-08-24T14:15:22Z",
- "url": "string",
- "user": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}
}, - "issue_id": 0,
- "time": 0,
- "user_id": 0,
- "user_name": "string"
}, - "type": "string",
- "updated_at": "2019-08-24T14:15:22Z",
- "user": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}
}
]
List an issue's tracked times
Authorizations:
path Parameters
owner required | string owner of the repo |
repo required | string name of the repo |
index required | integer <int64> index of the issue |
query Parameters
user | string optional filter by user (available for issue managers) |
since | string <date-time> Only show times updated after the given time. This is a timestamp in RFC 3339 format |
before | string <date-time> Only show times updated before the given time. This is a timestamp in RFC 3339 format |
page | integer page number of results to return (1-based) |
limit | integer page size of results |
Responses
Response samples
- 200
[- {
- "created": "2019-08-24T14:15:22Z",
- "id": 0,
- "issue": {
- "assets": [
- {
- "browser_download_url": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "download_count": 0,
- "id": 0,
- "name": "string",
- "size": 0,
- "uuid": "string"
}
], - "assignee": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "assignees": [
- {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}
], - "body": "string",
- "closed_at": "2019-08-24T14:15:22Z",
- "comments": 0,
- "created_at": "2019-08-24T14:15:22Z",
- "due_date": "2019-08-24T14:15:22Z",
- "html_url": "string",
- "id": 0,
- "is_locked": true,
- "labels": [
- {
- "color": "00aabb",
- "description": "string",
- "exclusive": false,
- "id": 0,
- "is_archived": false,
- "name": "string",
- "url": "string"
}
], - "milestone": {
- "closed_at": "2019-08-24T14:15:22Z",
- "closed_issues": 0,
- "created_at": "2019-08-24T14:15:22Z",
- "description": "string",
- "due_on": "2019-08-24T14:15:22Z",
- "id": 0,
- "open_issues": 0,
- "state": "string",
- "title": "string",
- "updated_at": "2019-08-24T14:15:22Z"
}, - "number": 0,
- "original_author": "string",
- "original_author_id": 0,
- "pin_order": 0,
- "pull_request": {
- "merged": true,
- "merged_at": "2019-08-24T14:15:22Z"
}, - "ref": "string",
- "repository": {
- "full_name": "string",
- "id": 0,
- "name": "string",
- "owner": "string"
}, - "state": "string",
- "title": "string",
- "updated_at": "2019-08-24T14:15:22Z",
- "url": "string",
- "user": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}
}, - "issue_id": 0,
- "time": 0,
- "user_id": 0,
- "user_name": "string"
}
]
Add tracked time to a issue
Authorizations:
path Parameters
owner required | string owner of the repo |
repo required | string name of the repo |
index required | integer <int64> index of the issue |
Request Body schema: application/json
created | string <date-time> |
time required | integer <int64> time in seconds |
user_name | string User who spent the time (optional) |
Responses
Request samples
- Payload
{- "created": "2019-08-24T14:15:22Z",
- "time": 0,
- "user_name": "string"
}
Response samples
- 200
{- "created": "2019-08-24T14:15:22Z",
- "id": 0,
- "issue": {
- "assets": [
- {
- "browser_download_url": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "download_count": 0,
- "id": 0,
- "name": "string",
- "size": 0,
- "uuid": "string"
}
], - "assignee": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "assignees": [
- {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}
], - "body": "string",
- "closed_at": "2019-08-24T14:15:22Z",
- "comments": 0,
- "created_at": "2019-08-24T14:15:22Z",
- "due_date": "2019-08-24T14:15:22Z",
- "html_url": "string",
- "id": 0,
- "is_locked": true,
- "labels": [
- {
- "color": "00aabb",
- "description": "string",
- "exclusive": false,
- "id": 0,
- "is_archived": false,
- "name": "string",
- "url": "string"
}
], - "milestone": {
- "closed_at": "2019-08-24T14:15:22Z",
- "closed_issues": 0,
- "created_at": "2019-08-24T14:15:22Z",
- "description": "string",
- "due_on": "2019-08-24T14:15:22Z",
- "id": 0,
- "open_issues": 0,
- "state": "string",
- "title": "string",
- "updated_at": "2019-08-24T14:15:22Z"
}, - "number": 0,
- "original_author": "string",
- "original_author_id": 0,
- "pin_order": 0,
- "pull_request": {
- "merged": true,
- "merged_at": "2019-08-24T14:15:22Z"
}, - "ref": "string",
- "repository": {
- "full_name": "string",
- "id": 0,
- "name": "string",
- "owner": "string"
}, - "state": "string",
- "title": "string",
- "updated_at": "2019-08-24T14:15:22Z",
- "url": "string",
- "user": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}
}, - "issue_id": 0,
- "time": 0,
- "user_id": 0,
- "user_name": "string"
}
Delete specific tracked time
Authorizations:
path Parameters
owner required | string owner of the repo |
repo required | string name of the repo |
index required | integer <int64> index of the issue |
id required | integer <int64> id of time to delete |
Responses
Get all of a repository's labels
Authorizations:
path Parameters
owner required | string owner of the repo |
repo required | string name of the repo |
query Parameters
page | integer page number of results to return (1-based) |
limit | integer page size of results |
Responses
Response samples
- 200
[- {
- "color": "00aabb",
- "description": "string",
- "exclusive": false,
- "id": 0,
- "is_archived": false,
- "name": "string",
- "url": "string"
}
]
Create a label
Authorizations:
path Parameters
owner required | string owner of the repo |
repo required | string name of the repo |
Request Body schema: application/json
color required | string |
description | string |
exclusive | boolean |
is_archived | boolean |
name required | string |
Responses
Request samples
- Payload
{- "color": "#00aabb",
- "description": "string",
- "exclusive": false,
- "is_archived": false,
- "name": "string"
}
Response samples
- 201
{- "color": "00aabb",
- "description": "string",
- "exclusive": false,
- "id": 0,
- "is_archived": false,
- "name": "string",
- "url": "string"
}
Get a single label
Authorizations:
path Parameters
owner required | string owner of the repo |
repo required | string name of the repo |
id required | integer <int64> id of the label to get |
Responses
Response samples
- 200
{- "color": "00aabb",
- "description": "string",
- "exclusive": false,
- "id": 0,
- "is_archived": false,
- "name": "string",
- "url": "string"
}
Update a label
Authorizations:
path Parameters
owner required | string owner of the repo |
repo required | string name of the repo |
id required | integer <int64> id of the label to edit |
Request Body schema: application/json
color | string |
description | string |
exclusive | boolean |
is_archived | boolean |
name | string |
Responses
Request samples
- Payload
{- "color": "#00aabb",
- "description": "string",
- "exclusive": false,
- "is_archived": false,
- "name": "string"
}
Response samples
- 200
{- "color": "00aabb",
- "description": "string",
- "exclusive": false,
- "id": 0,
- "is_archived": false,
- "name": "string",
- "url": "string"
}
Get all of a repository's opened milestones
Authorizations:
path Parameters
owner required | string owner of the repo |
repo required | string name of the repo |
query Parameters
state | string Milestone state, Recognized values are open, closed and all. Defaults to "open" |
name | string filter by milestone name |
page | integer page number of results to return (1-based) |
limit | integer page size of results |
Responses
Response samples
- 200
[- {
- "closed_at": "2019-08-24T14:15:22Z",
- "closed_issues": 0,
- "created_at": "2019-08-24T14:15:22Z",
- "description": "string",
- "due_on": "2019-08-24T14:15:22Z",
- "id": 0,
- "open_issues": 0,
- "state": "string",
- "title": "string",
- "updated_at": "2019-08-24T14:15:22Z"
}
]
Create a milestone
Authorizations:
path Parameters
owner required | string owner of the repo |
repo required | string name of the repo |
Request Body schema: application/json
description | string |
due_on | string <date-time> |
state | string Enum: "open" "closed" |
title | string |
Responses
Request samples
- Payload
{- "description": "string",
- "due_on": "2019-08-24T14:15:22Z",
- "state": "open",
- "title": "string"
}
Response samples
- 201
{- "closed_at": "2019-08-24T14:15:22Z",
- "closed_issues": 0,
- "created_at": "2019-08-24T14:15:22Z",
- "description": "string",
- "due_on": "2019-08-24T14:15:22Z",
- "id": 0,
- "open_issues": 0,
- "state": "string",
- "title": "string",
- "updated_at": "2019-08-24T14:15:22Z"
}
Get a milestone
Authorizations:
path Parameters
owner required | string owner of the repo |
repo required | string name of the repo |
id required | string the milestone to get, identified by ID and if not available by name |
Responses
Response samples
- 200
{- "closed_at": "2019-08-24T14:15:22Z",
- "closed_issues": 0,
- "created_at": "2019-08-24T14:15:22Z",
- "description": "string",
- "due_on": "2019-08-24T14:15:22Z",
- "id": 0,
- "open_issues": 0,
- "state": "string",
- "title": "string",
- "updated_at": "2019-08-24T14:15:22Z"
}
Update a milestone
Authorizations:
path Parameters
owner required | string owner of the repo |
repo required | string name of the repo |
id required | string the milestone to edit, identified by ID and if not available by name |
Request Body schema: application/json
description | string |
due_on | string <date-time> |
state | string |
title | string |
Responses
Request samples
- Payload
{- "description": "string",
- "due_on": "2019-08-24T14:15:22Z",
- "state": "string",
- "title": "string"
}
Response samples
- 200
{- "closed_at": "2019-08-24T14:15:22Z",
- "closed_issues": 0,
- "created_at": "2019-08-24T14:15:22Z",
- "description": "string",
- "due_on": "2019-08-24T14:15:22Z",
- "id": 0,
- "open_issues": 0,
- "state": "string",
- "title": "string",
- "updated_at": "2019-08-24T14:15:22Z"
}
Migrate a remote git repository
Authorizations:
Request Body schema: application/json
auth_password | string |
auth_token | string |
auth_username | string |
clone_addr required | string |
description | string |
issues | boolean |
labels | boolean |
lfs | boolean |
lfs_endpoint | string |
milestones | boolean |
mirror | boolean |
mirror_interval | string |
private | boolean |
pull_requests | boolean |
releases | boolean |
repo_name required | string |
repo_owner | string Name of User or Organisation who will own Repo after migration |
service | string Enum: "git" "github" "gitea" "gitlab" "gogs" "onedev" "gitbucket" "codebase" |
uid | integer <int64> deprecated (only for backwards compatibility) |
wiki | boolean |
Responses
Request samples
- Payload
{- "auth_password": "string",
- "auth_token": "string",
- "auth_username": "string",
- "clone_addr": "string",
- "description": "string",
- "issues": true,
- "labels": true,
- "lfs": true,
- "lfs_endpoint": "string",
- "milestones": true,
- "mirror": true,
- "mirror_interval": "string",
- "private": true,
- "pull_requests": true,
- "releases": true,
- "repo_name": "string",
- "repo_owner": "string",
- "service": "git",
- "uid": 0,
- "wiki": true
}
Response samples
- 201
{- "allow_merge_commits": true,
- "allow_rebase": true,
- "allow_rebase_explicit": true,
- "allow_rebase_update": true,
- "allow_squash_merge": true,
- "archived": true,
- "archived_at": "2019-08-24T14:15:22Z",
- "avatar_url": "string",
- "clone_url": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "default_allow_maintainer_edit": true,
- "default_branch": "string",
- "default_delete_branch_after_merge": true,
- "default_merge_style": "string",
- "description": "string",
- "empty": true,
- "external_tracker": {
- "external_tracker_format": "string",
- "external_tracker_regexp_pattern": "string",
- "external_tracker_style": "string",
- "external_tracker_url": "string"
}, - "external_wiki": {
- "external_wiki_url": "string"
}, - "fork": true,
- "forks_count": 0,
- "full_name": "string",
- "has_actions": true,
- "has_issues": true,
- "has_packages": true,
- "has_projects": true,
- "has_pull_requests": true,
- "has_releases": true,
- "has_wiki": true,
- "html_url": "string",
- "id": 0,
- "ignore_whitespace_conflicts": true,
- "internal": true,
- "internal_tracker": {
- "allow_only_contributors_to_track_time": true,
- "enable_issue_dependencies": true,
- "enable_time_tracker": true
}, - "language": "string",
- "languages_url": "string",
- "link": "string",
- "mirror": true,
- "mirror_interval": "string",
- "mirror_updated": "2019-08-24T14:15:22Z",
- "name": "string",
- "open_issues_count": 0,
- "open_pr_counter": 0,
- "original_url": "string",
- "owner": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "parent": { },
- "permissions": {
- "admin": true,
- "pull": true,
- "push": true
}, - "private": true,
- "release_counter": 0,
- "repo_transfer": {
- "doer": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "recipient": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "teams": [
- {
- "can_create_org_repo": true,
- "description": "string",
- "id": 0,
- "includes_all_repositories": true,
- "name": "string",
- "organization": {
- "avatar_url": "string",
- "description": "string",
- "email": "string",
- "full_name": "string",
- "id": 0,
- "location": "string",
- "name": "string",
- "repo_admin_change_team_access": true,
- "username": "string",
- "visibility": "string",
- "website": "string"
}, - "permission": "none",
- "units": [
- "repo.code",
- "repo.issues",
- "repo.ext_issues",
- "repo.wiki",
- "repo.pulls",
- "repo.releases",
- "repo.projects",
- "repo.ext_wiki"
], - "units_map": {
- "repo.code": "read",
- "repo.ext_issues": "none",
- "repo.ext_wiki": "none",
- "repo.issues": "write",
- "repo.projects": "none",
- "repo.pulls": "owner",
- "repo.releases": "none",
- "repo.wiki": "admin"
}
}
]
}, - "size": 0,
- "ssh_url": "string",
- "stars_count": 0,
- "template": true,
- "updated_at": "2019-08-24T14:15:22Z",
- "url": "string",
- "watchers_count": 0,
- "website": "string"
}
Search for repositories
Authorizations:
query Parameters
q | string keyword |
topic | boolean Limit search to repositories with keyword as topic |
includeDesc | boolean include search of keyword within repository description |
uid | integer <int64> search only for repos that the user with the given id owns or contributes to |
priority_owner_id | integer <int64> repo owner to prioritize in the results |
team_id | integer <int64> search only for repos that belong to the given team id |
starredBy | integer <int64> search only for repos that the user with the given id has starred |
private | boolean include private repositories this user has access to (defaults to true) |
is_private | boolean show only pubic, private or all repositories (defaults to all) |
template | boolean include template repositories this user has access to (defaults to true) |
archived | boolean show only archived, non-archived or all repositories (defaults to all) |
mode | string type of repository to search for. Supported values are "fork", "source", "mirror" and "collaborative" |
exclusive | boolean if |
sort | string sort repos by attribute. Supported values are "alpha", "created", "updated", "size", and "id". Default is "alpha" |
order | string sort order, either "asc" (ascending) or "desc" (descending). Default is "asc", ignored if "sort" is not specified. |
page | integer page number of results to return (1-based) |
limit | integer page size of results |
Responses
Response samples
- 200
{- "data": [
- {
- "allow_merge_commits": true,
- "allow_rebase": true,
- "allow_rebase_explicit": true,
- "allow_rebase_update": true,
- "allow_squash_merge": true,
- "archived": true,
- "archived_at": "2019-08-24T14:15:22Z",
- "avatar_url": "string",
- "clone_url": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "default_allow_maintainer_edit": true,
- "default_branch": "string",
- "default_delete_branch_after_merge": true,
- "default_merge_style": "string",
- "description": "string",
- "empty": true,
- "external_tracker": {
- "external_tracker_format": "string",
- "external_tracker_regexp_pattern": "string",
- "external_tracker_style": "string",
- "external_tracker_url": "string"
}, - "external_wiki": {
- "external_wiki_url": "string"
}, - "fork": true,
- "forks_count": 0,
- "full_name": "string",
- "has_actions": true,
- "has_issues": true,
- "has_packages": true,
- "has_projects": true,
- "has_pull_requests": true,
- "has_releases": true,
- "has_wiki": true,
- "html_url": "string",
- "id": 0,
- "ignore_whitespace_conflicts": true,
- "internal": true,
- "internal_tracker": {
- "allow_only_contributors_to_track_time": true,
- "enable_issue_dependencies": true,
- "enable_time_tracker": true
}, - "language": "string",
- "languages_url": "string",
- "link": "string",
- "mirror": true,
- "mirror_interval": "string",
- "mirror_updated": "2019-08-24T14:15:22Z",
- "name": "string",
- "open_issues_count": 0,
- "open_pr_counter": 0,
- "original_url": "string",
- "owner": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "parent": { },
- "permissions": {
- "admin": true,
- "pull": true,
- "push": true
}, - "private": true,
- "release_counter": 0,
- "repo_transfer": {
- "doer": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "recipient": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "teams": [
- {
- "can_create_org_repo": true,
- "description": "string",
- "id": 0,
- "includes_all_repositories": true,
- "name": "string",
- "organization": {
- "avatar_url": "string",
- "description": "string",
- "email": "string",
- "full_name": "string",
- "id": 0,
- "location": "string",
- "name": "string",
- "repo_admin_change_team_access": true,
- "username": "string",
- "visibility": "string",
- "website": "string"
}, - "permission": "none",
- "units": [
- "repo.code",
- "repo.issues",
- "repo.ext_issues",
- "repo.wiki",
- "repo.pulls",
- "repo.releases",
- "repo.projects",
- "repo.ext_wiki"
], - "units_map": {
- "repo.code": "read",
- "repo.ext_issues": "none",
- "repo.ext_wiki": "none",
- "repo.issues": "write",
- "repo.projects": "none",
- "repo.pulls": "owner",
- "repo.releases": "none",
- "repo.wiki": "admin"
}
}
]
}, - "size": 0,
- "ssh_url": "string",
- "stars_count": 0,
- "template": true,
- "updated_at": "2019-08-24T14:15:22Z",
- "url": "string",
- "watchers_count": 0,
- "website": "string"
}
], - "ok": true
}
Get a repository
Authorizations:
path Parameters
owner required | string owner of the repo |
repo required | string name of the repo |
Responses
Response samples
- 200
{- "allow_merge_commits": true,
- "allow_rebase": true,
- "allow_rebase_explicit": true,
- "allow_rebase_update": true,
- "allow_squash_merge": true,
- "archived": true,
- "archived_at": "2019-08-24T14:15:22Z",
- "avatar_url": "string",
- "clone_url": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "default_allow_maintainer_edit": true,
- "default_branch": "string",
- "default_delete_branch_after_merge": true,
- "default_merge_style": "string",
- "description": "string",
- "empty": true,
- "external_tracker": {
- "external_tracker_format": "string",
- "external_tracker_regexp_pattern": "string",
- "external_tracker_style": "string",
- "external_tracker_url": "string"
}, - "external_wiki": {
- "external_wiki_url": "string"
}, - "fork": true,
- "forks_count": 0,
- "full_name": "string",
- "has_actions": true,
- "has_issues": true,
- "has_packages": true,
- "has_projects": true,
- "has_pull_requests": true,
- "has_releases": true,
- "has_wiki": true,
- "html_url": "string",
- "id": 0,
- "ignore_whitespace_conflicts": true,
- "internal": true,
- "internal_tracker": {
- "allow_only_contributors_to_track_time": true,
- "enable_issue_dependencies": true,
- "enable_time_tracker": true
}, - "language": "string",
- "languages_url": "string",
- "link": "string",
- "mirror": true,
- "mirror_interval": "string",
- "mirror_updated": "2019-08-24T14:15:22Z",
- "name": "string",
- "open_issues_count": 0,
- "open_pr_counter": 0,
- "original_url": "string",
- "owner": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "parent": { },
- "permissions": {
- "admin": true,
- "pull": true,
- "push": true
}, - "private": true,
- "release_counter": 0,
- "repo_transfer": {
- "doer": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "recipient": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "teams": [
- {
- "can_create_org_repo": true,
- "description": "string",
- "id": 0,
- "includes_all_repositories": true,
- "name": "string",
- "organization": {
- "avatar_url": "string",
- "description": "string",
- "email": "string",
- "full_name": "string",
- "id": 0,
- "location": "string",
- "name": "string",
- "repo_admin_change_team_access": true,
- "username": "string",
- "visibility": "string",
- "website": "string"
}, - "permission": "none",
- "units": [
- "repo.code",
- "repo.issues",
- "repo.ext_issues",
- "repo.wiki",
- "repo.pulls",
- "repo.releases",
- "repo.projects",
- "repo.ext_wiki"
], - "units_map": {
- "repo.code": "read",
- "repo.ext_issues": "none",
- "repo.ext_wiki": "none",
- "repo.issues": "write",
- "repo.projects": "none",
- "repo.pulls": "owner",
- "repo.releases": "none",
- "repo.wiki": "admin"
}
}
]
}, - "size": 0,
- "ssh_url": "string",
- "stars_count": 0,
- "template": true,
- "updated_at": "2019-08-24T14:15:22Z",
- "url": "string",
- "watchers_count": 0,
- "website": "string"
}
Edit a repository's properties. Only fields that are set will be changed.
Authorizations:
path Parameters
owner required | string owner of the repo to edit |
repo required | string name of the repo to edit |
Request Body schema:
Properties of a repo that you can edit
allow_manual_merge | boolean either |
allow_merge_commits | boolean either |
allow_rebase | boolean either |
allow_rebase_explicit | boolean either |
allow_rebase_update | boolean either |
allow_squash_merge | boolean either |
archived | boolean set to |
autodetect_manual_merge | boolean either |
default_allow_maintainer_edit | boolean set to |
default_branch | string sets the default branch for this repository. |
default_delete_branch_after_merge | boolean set to |
default_merge_style | string set to a merge style to be used by this repository: "merge", "rebase", "rebase-merge", or "squash". |
description | string a short description of the repository. |
enable_prune | boolean enable prune - remove obsolete remote-tracking references |
object (ExternalTracker) ExternalTracker represents settings for external tracker | |
object (ExternalWiki) ExternalWiki represents setting for external wiki | |
has_actions | boolean either |
has_issues | boolean either |
has_packages | boolean either |
has_projects | boolean either |
has_pull_requests | boolean either |
has_releases | boolean either |
has_wiki | boolean either |
ignore_whitespace_conflicts | boolean either |
object (InternalTracker) InternalTracker represents settings for internal tracker | |
mirror_interval | string set to a string like |
name | string unique name of the repository |
private | boolean either |
template | boolean either |
website | string a URL with more information about the repository. |
Responses
Request samples
- Payload
{- "allow_manual_merge": true,
- "allow_merge_commits": true,
- "allow_rebase": true,
- "allow_rebase_explicit": true,
- "allow_rebase_update": true,
- "allow_squash_merge": true,
- "archived": true,
- "autodetect_manual_merge": true,
- "default_allow_maintainer_edit": true,
- "default_branch": "string",
- "default_delete_branch_after_merge": true,
- "default_merge_style": "string",
- "description": "string",
- "enable_prune": true,
- "external_tracker": {
- "external_tracker_format": "string",
- "external_tracker_regexp_pattern": "string",
- "external_tracker_style": "string",
- "external_tracker_url": "string"
}, - "external_wiki": {
- "external_wiki_url": "string"
}, - "has_actions": true,
- "has_issues": true,
- "has_packages": true,
- "has_projects": true,
- "has_pull_requests": true,
- "has_releases": true,
- "has_wiki": true,
- "ignore_whitespace_conflicts": true,
- "internal_tracker": {
- "allow_only_contributors_to_track_time": true,
- "enable_issue_dependencies": true,
- "enable_time_tracker": true
}, - "mirror_interval": "string",
- "name": "string",
- "private": true,
- "template": true,
- "website": "string"
}
Response samples
- 200
{- "allow_merge_commits": true,
- "allow_rebase": true,
- "allow_rebase_explicit": true,
- "allow_rebase_update": true,
- "allow_squash_merge": true,
- "archived": true,
- "archived_at": "2019-08-24T14:15:22Z",
- "avatar_url": "string",
- "clone_url": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "default_allow_maintainer_edit": true,
- "default_branch": "string",
- "default_delete_branch_after_merge": true,
- "default_merge_style": "string",
- "description": "string",
- "empty": true,
- "external_tracker": {
- "external_tracker_format": "string",
- "external_tracker_regexp_pattern": "string",
- "external_tracker_style": "string",
- "external_tracker_url": "string"
}, - "external_wiki": {
- "external_wiki_url": "string"
}, - "fork": true,
- "forks_count": 0,
- "full_name": "string",
- "has_actions": true,
- "has_issues": true,
- "has_packages": true,
- "has_projects": true,
- "has_pull_requests": true,
- "has_releases": true,
- "has_wiki": true,
- "html_url": "string",
- "id": 0,
- "ignore_whitespace_conflicts": true,
- "internal": true,
- "internal_tracker": {
- "allow_only_contributors_to_track_time": true,
- "enable_issue_dependencies": true,
- "enable_time_tracker": true
}, - "language": "string",
- "languages_url": "string",
- "link": "string",
- "mirror": true,
- "mirror_interval": "string",
- "mirror_updated": "2019-08-24T14:15:22Z",
- "name": "string",
- "open_issues_count": 0,
- "open_pr_counter": 0,
- "original_url": "string",
- "owner": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "parent": { },
- "permissions": {
- "admin": true,
- "pull": true,
- "push": true
}, - "private": true,
- "release_counter": 0,
- "repo_transfer": {
- "doer": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "recipient": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "teams": [
- {
- "can_create_org_repo": true,
- "description": "string",
- "id": 0,
- "includes_all_repositories": true,
- "name": "string",
- "organization": {
- "avatar_url": "string",
- "description": "string",
- "email": "string",
- "full_name": "string",
- "id": 0,
- "location": "string",
- "name": "string",
- "repo_admin_change_team_access": true,
- "username": "string",
- "visibility": "string",
- "website": "string"
}, - "permission": "none",
- "units": [
- "repo.code",
- "repo.issues",
- "repo.ext_issues",
- "repo.wiki",
- "repo.pulls",
- "repo.releases",
- "repo.projects",
- "repo.ext_wiki"
], - "units_map": {
- "repo.code": "read",
- "repo.ext_issues": "none",
- "repo.ext_wiki": "none",
- "repo.issues": "write",
- "repo.projects": "none",
- "repo.pulls": "owner",
- "repo.releases": "none",
- "repo.wiki": "admin"
}
}
]
}, - "size": 0,
- "ssh_url": "string",
- "stars_count": 0,
- "template": true,
- "updated_at": "2019-08-24T14:15:22Z",
- "url": "string",
- "watchers_count": 0,
- "website": "string"
}
Create or Update a secret value in a repository
Authorizations:
path Parameters
owner required | string owner of the repository |
repo required | string name of the repository |
secretname required | string name of the secret |
Request Body schema: application/json
data required | string Data of the secret to update |
Responses
Request samples
- Payload
{- "data": "string"
}
List a repository's activity feeds
Authorizations:
path Parameters
owner required | string owner of the repo |
repo required | string name of the repo |
query Parameters
date | string <date> the date of the activities to be found |
page | integer page number of results to return (1-based) |
limit | integer page size of results |
Responses
Response samples
- 200
[- {
- "act_user": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "act_user_id": 0,
- "comment": {
- "assets": [
- {
- "browser_download_url": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "download_count": 0,
- "id": 0,
- "name": "string",
- "size": 0,
- "uuid": "string"
}
], - "body": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "html_url": "string",
- "id": 0,
- "issue_url": "string",
- "original_author": "string",
- "original_author_id": 0,
- "pull_request_url": "string",
- "updated_at": "2019-08-24T14:15:22Z",
- "user": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}
}, - "comment_id": 0,
- "content": "string",
- "created": "2019-08-24T14:15:22Z",
- "id": 0,
- "is_private": true,
- "op_type": "string",
- "ref_name": "string",
- "repo": {
- "allow_merge_commits": true,
- "allow_rebase": true,
- "allow_rebase_explicit": true,
- "allow_rebase_update": true,
- "allow_squash_merge": true,
- "archived": true,
- "archived_at": "2019-08-24T14:15:22Z",
- "avatar_url": "string",
- "clone_url": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "default_allow_maintainer_edit": true,
- "default_branch": "string",
- "default_delete_branch_after_merge": true,
- "default_merge_style": "string",
- "description": "string",
- "empty": true,
- "external_tracker": {
- "external_tracker_format": "string",
- "external_tracker_regexp_pattern": "string",
- "external_tracker_style": "string",
- "external_tracker_url": "string"
}, - "external_wiki": {
- "external_wiki_url": "string"
}, - "fork": true,
- "forks_count": 0,
- "full_name": "string",
- "has_actions": true,
- "has_issues": true,
- "has_packages": true,
- "has_projects": true,
- "has_pull_requests": true,
- "has_releases": true,
- "has_wiki": true,
- "html_url": "string",
- "id": 0,
- "ignore_whitespace_conflicts": true,
- "internal": true,
- "internal_tracker": {
- "allow_only_contributors_to_track_time": true,
- "enable_issue_dependencies": true,
- "enable_time_tracker": true
}, - "language": "string",
- "languages_url": "string",
- "link": "string",
- "mirror": true,
- "mirror_interval": "string",
- "mirror_updated": "2019-08-24T14:15:22Z",
- "name": "string",
- "open_issues_count": 0,
- "open_pr_counter": 0,
- "original_url": "string",
- "owner": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "parent": { },
- "permissions": {
- "admin": true,
- "pull": true,
- "push": true
}, - "private": true,
- "release_counter": 0,
- "repo_transfer": {
- "doer": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "recipient": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "teams": [
- {
- "can_create_org_repo": true,
- "description": "string",
- "id": 0,
- "includes_all_repositories": true,
- "name": "string",
- "organization": {
- "avatar_url": "string",
- "description": "string",
- "email": "string",
- "full_name": "string",
- "id": 0,
- "location": "string",
- "name": "string",
- "repo_admin_change_team_access": true,
- "username": "string",
- "visibility": "string",
- "website": "string"
}, - "permission": "none",
- "units": [
- "repo.code",
- "repo.issues",
- "repo.ext_issues",
- "repo.wiki",
- "repo.pulls",
- "repo.releases",
- "repo.projects",
- "repo.ext_wiki"
], - "units_map": {
- "repo.code": "read",
- "repo.ext_issues": "none",
- "repo.ext_wiki": "none",
- "repo.issues": "write",
- "repo.projects": "none",
- "repo.pulls": "owner",
- "repo.releases": "none",
- "repo.wiki": "admin"
}
}
]
}, - "size": 0,
- "ssh_url": "string",
- "stars_count": 0,
- "template": true,
- "updated_at": "2019-08-24T14:15:22Z",
- "url": "string",
- "watchers_count": 0,
- "website": "string"
}, - "repo_id": 0,
- "user_id": 0
}
]
Get an archive of a repository
Authorizations:
path Parameters
owner required | string owner of the repo |
repo required | string name of the repo |
archive required | string the git reference for download with attached archive format (e.g. master.zip) |
Responses
Return all users that have write access and can be assigned to issues
Authorizations:
path Parameters
owner required | string owner of the repo |
repo required | string name of the repo |
Responses
Response samples
- 200
[- {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}
]
Update avatar
Authorizations:
path Parameters
owner required | string owner of the repo |
repo required | string name of the repo |
Request Body schema:
image | string image must be base64 encoded |
Responses
Request samples
- Payload
{- "image": "string"
}
List branch protections for a repository
Authorizations:
path Parameters
owner required | string owner of the repo |
repo required | string name of the repo |
Responses
Response samples
- 200
[- {
- "approvals_whitelist_teams": [
- "string"
], - "approvals_whitelist_username": [
- "string"
], - "block_on_official_review_requests": true,
- "block_on_outdated_branch": true,
- "block_on_rejected_reviews": true,
- "branch_name": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "dismiss_stale_approvals": true,
- "enable_approvals_whitelist": true,
- "enable_merge_whitelist": true,
- "enable_push": true,
- "enable_push_whitelist": true,
- "enable_status_check": true,
- "merge_whitelist_teams": [
- "string"
], - "merge_whitelist_usernames": [
- "string"
], - "protected_file_patterns": "string",
- "push_whitelist_deploy_keys": true,
- "push_whitelist_teams": [
- "string"
], - "push_whitelist_usernames": [
- "string"
], - "require_signed_commits": true,
- "required_approvals": 0,
- "rule_name": "string",
- "status_check_contexts": [
- "string"
], - "unprotected_file_patterns": "string",
- "updated_at": "2019-08-24T14:15:22Z"
}
]
Create a branch protections for a repository
Authorizations:
path Parameters
owner required | string owner of the repo |
repo required | string name of the repo |
Request Body schema: application/json
approvals_whitelist_teams | Array of strings |
approvals_whitelist_username | Array of strings |
block_on_official_review_requests | boolean |
block_on_outdated_branch | boolean |
block_on_rejected_reviews | boolean |
branch_name | string Deprecated: true |
dismiss_stale_approvals | boolean |
enable_approvals_whitelist | boolean |
enable_merge_whitelist | boolean |
enable_push | boolean |
enable_push_whitelist | boolean |
enable_status_check | boolean |
merge_whitelist_teams | Array of strings |
merge_whitelist_usernames | Array of strings |
protected_file_patterns | string |
push_whitelist_deploy_keys | boolean |
push_whitelist_teams | Array of strings |
push_whitelist_usernames | Array of strings |
require_signed_commits | boolean |
required_approvals | integer <int64> |
rule_name | string |
status_check_contexts | Array of strings |
unprotected_file_patterns | string |
Responses
Request samples
- Payload
{- "approvals_whitelist_teams": [
- "string"
], - "approvals_whitelist_username": [
- "string"
], - "block_on_official_review_requests": true,
- "block_on_outdated_branch": true,
- "block_on_rejected_reviews": true,
- "branch_name": "string",
- "dismiss_stale_approvals": true,
- "enable_approvals_whitelist": true,
- "enable_merge_whitelist": true,
- "enable_push": true,
- "enable_push_whitelist": true,
- "enable_status_check": true,
- "merge_whitelist_teams": [
- "string"
], - "merge_whitelist_usernames": [
- "string"
], - "protected_file_patterns": "string",
- "push_whitelist_deploy_keys": true,
- "push_whitelist_teams": [
- "string"
], - "push_whitelist_usernames": [
- "string"
], - "require_signed_commits": true,
- "required_approvals": 0,
- "rule_name": "string",
- "status_check_contexts": [
- "string"
], - "unprotected_file_patterns": "string"
}
Response samples
- 201
{- "approvals_whitelist_teams": [
- "string"
], - "approvals_whitelist_username": [
- "string"
], - "block_on_official_review_requests": true,
- "block_on_outdated_branch": true,
- "block_on_rejected_reviews": true,
- "branch_name": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "dismiss_stale_approvals": true,
- "enable_approvals_whitelist": true,
- "enable_merge_whitelist": true,
- "enable_push": true,
- "enable_push_whitelist": true,
- "enable_status_check": true,
- "merge_whitelist_teams": [
- "string"
], - "merge_whitelist_usernames": [
- "string"
], - "protected_file_patterns": "string",
- "push_whitelist_deploy_keys": true,
- "push_whitelist_teams": [
- "string"
], - "push_whitelist_usernames": [
- "string"
], - "require_signed_commits": true,
- "required_approvals": 0,
- "rule_name": "string",
- "status_check_contexts": [
- "string"
], - "unprotected_file_patterns": "string",
- "updated_at": "2019-08-24T14:15:22Z"
}
Get a specific branch protection for the repository
Authorizations:
path Parameters
owner required | string owner of the repo |
repo required | string name of the repo |
name required | string name of protected branch |
Responses
Response samples
- 200
{- "approvals_whitelist_teams": [
- "string"
], - "approvals_whitelist_username": [
- "string"
], - "block_on_official_review_requests": true,
- "block_on_outdated_branch": true,
- "block_on_rejected_reviews": true,
- "branch_name": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "dismiss_stale_approvals": true,
- "enable_approvals_whitelist": true,
- "enable_merge_whitelist": true,
- "enable_push": true,
- "enable_push_whitelist": true,
- "enable_status_check": true,
- "merge_whitelist_teams": [
- "string"
], - "merge_whitelist_usernames": [
- "string"
], - "protected_file_patterns": "string",
- "push_whitelist_deploy_keys": true,
- "push_whitelist_teams": [
- "string"
], - "push_whitelist_usernames": [
- "string"
], - "require_signed_commits": true,
- "required_approvals": 0,
- "rule_name": "string",
- "status_check_contexts": [
- "string"
], - "unprotected_file_patterns": "string",
- "updated_at": "2019-08-24T14:15:22Z"
}
Edit a branch protections for a repository. Only fields that are set will be changed
Authorizations:
path Parameters
owner required | string owner of the repo |
repo required | string name of the repo |
name required | string name of protected branch |
Request Body schema: application/json
approvals_whitelist_teams | Array of strings |
approvals_whitelist_username | Array of strings |
block_on_official_review_requests | boolean |
block_on_outdated_branch | boolean |
block_on_rejected_reviews | boolean |
dismiss_stale_approvals | boolean |
enable_approvals_whitelist | boolean |
enable_merge_whitelist | boolean |
enable_push | boolean |
enable_push_whitelist | boolean |
enable_status_check | boolean |
merge_whitelist_teams | Array of strings |
merge_whitelist_usernames | Array of strings |
protected_file_patterns | string |
push_whitelist_deploy_keys | boolean |
push_whitelist_teams | Array of strings |
push_whitelist_usernames | Array of strings |
require_signed_commits | boolean |
required_approvals | integer <int64> |
status_check_contexts | Array of strings |
unprotected_file_patterns | string |
Responses
Request samples
- Payload
{- "approvals_whitelist_teams": [
- "string"
], - "approvals_whitelist_username": [
- "string"
], - "block_on_official_review_requests": true,
- "block_on_outdated_branch": true,
- "block_on_rejected_reviews": true,
- "dismiss_stale_approvals": true,
- "enable_approvals_whitelist": true,
- "enable_merge_whitelist": true,
- "enable_push": true,
- "enable_push_whitelist": true,
- "enable_status_check": true,
- "merge_whitelist_teams": [
- "string"
], - "merge_whitelist_usernames": [
- "string"
], - "protected_file_patterns": "string",
- "push_whitelist_deploy_keys": true,
- "push_whitelist_teams": [
- "string"
], - "push_whitelist_usernames": [
- "string"
], - "require_signed_commits": true,
- "required_approvals": 0,
- "status_check_contexts": [
- "string"
], - "unprotected_file_patterns": "string"
}
Response samples
- 200
{- "approvals_whitelist_teams": [
- "string"
], - "approvals_whitelist_username": [
- "string"
], - "block_on_official_review_requests": true,
- "block_on_outdated_branch": true,
- "block_on_rejected_reviews": true,
- "branch_name": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "dismiss_stale_approvals": true,
- "enable_approvals_whitelist": true,
- "enable_merge_whitelist": true,
- "enable_push": true,
- "enable_push_whitelist": true,
- "enable_status_check": true,
- "merge_whitelist_teams": [
- "string"
], - "merge_whitelist_usernames": [
- "string"
], - "protected_file_patterns": "string",
- "push_whitelist_deploy_keys": true,
- "push_whitelist_teams": [
- "string"
], - "push_whitelist_usernames": [
- "string"
], - "require_signed_commits": true,
- "required_approvals": 0,
- "rule_name": "string",
- "status_check_contexts": [
- "string"
], - "unprotected_file_patterns": "string",
- "updated_at": "2019-08-24T14:15:22Z"
}
List a repository's branches
Authorizations:
path Parameters
owner required | string owner of the repo |
repo required | string name of the repo |
query Parameters
page | integer page number of results to return (1-based) |
limit | integer page size of results |
Responses
Response samples
- 200
[- {
- "commit": {
- "added": [
- "string"
], - "author": {
- "email": "user@example.com",
- "name": "string",
- "username": "string"
}, - "committer": {
- "email": "user@example.com",
- "name": "string",
- "username": "string"
}, - "id": "string",
- "message": "string",
- "modified": [
- "string"
], - "removed": [
- "string"
], - "timestamp": "2019-08-24T14:15:22Z",
- "url": "string",
- "verification": {
- "payload": "string",
- "reason": "string",
- "signature": "string",
- "signer": {
- "email": "user@example.com",
- "name": "string",
- "username": "string"
}, - "verified": true
}
}, - "effective_branch_protection_name": "string",
- "enable_status_check": true,
- "name": "string",
- "protected": true,
- "required_approvals": 0,
- "status_check_contexts": [
- "string"
], - "user_can_merge": true,
- "user_can_push": true
}
]
Create a branch
Authorizations:
path Parameters
owner required | string owner of the repo |
repo required | string name of the repo |
Request Body schema: application/json
new_branch_name required | string unique Name of the branch to create |
old_branch_name | string unique Deprecated: true Name of the old branch to create from |
old_ref_name | string unique Name of the old branch/tag/commit to create from |
Responses
Request samples
- Payload
{- "new_branch_name": "string",
- "old_branch_name": "string",
- "old_ref_name": "string"
}
Response samples
- 201
{- "commit": {
- "added": [
- "string"
], - "author": {
- "email": "user@example.com",
- "name": "string",
- "username": "string"
}, - "committer": {
- "email": "user@example.com",
- "name": "string",
- "username": "string"
}, - "id": "string",
- "message": "string",
- "modified": [
- "string"
], - "removed": [
- "string"
], - "timestamp": "2019-08-24T14:15:22Z",
- "url": "string",
- "verification": {
- "payload": "string",
- "reason": "string",
- "signature": "string",
- "signer": {
- "email": "user@example.com",
- "name": "string",
- "username": "string"
}, - "verified": true
}
}, - "effective_branch_protection_name": "string",
- "enable_status_check": true,
- "name": "string",
- "protected": true,
- "required_approvals": 0,
- "status_check_contexts": [
- "string"
], - "user_can_merge": true,
- "user_can_push": true
}
Retrieve a specific branch from a repository, including its effective branch protection
Authorizations:
path Parameters
owner required | string owner of the repo |
repo required | string name of the repo |
branch required | string branch to get |
Responses
Response samples
- 200
{- "commit": {
- "added": [
- "string"
], - "author": {
- "email": "user@example.com",
- "name": "string",
- "username": "string"
}, - "committer": {
- "email": "user@example.com",
- "name": "string",
- "username": "string"
}, - "id": "string",
- "message": "string",
- "modified": [
- "string"
], - "removed": [
- "string"
], - "timestamp": "2019-08-24T14:15:22Z",
- "url": "string",
- "verification": {
- "payload": "string",
- "reason": "string",
- "signature": "string",
- "signer": {
- "email": "user@example.com",
- "name": "string",
- "username": "string"
}, - "verified": true
}
}, - "effective_branch_protection_name": "string",
- "enable_status_check": true,
- "name": "string",
- "protected": true,
- "required_approvals": 0,
- "status_check_contexts": [
- "string"
], - "user_can_merge": true,
- "user_can_push": true
}
List a repository's collaborators
Authorizations:
path Parameters
owner required | string owner of the repo |
repo required | string name of the repo |
query Parameters
page | integer page number of results to return (1-based) |
limit | integer page size of results |
Responses
Response samples
- 200
[- {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}
]
Add a collaborator to a repository
Authorizations:
path Parameters
owner required | string owner of the repo |
repo required | string name of the repo |
collaborator required | string username of the collaborator to add |
Request Body schema:
permission | string |
Responses
Request samples
- Payload
{- "permission": "string"
}
Get repository permissions for a user
Authorizations:
path Parameters
owner required | string owner of the repo |
repo required | string name of the repo |
collaborator required | string username of the collaborator |
Responses
Response samples
- 200
{- "permission": "string",
- "role_name": "string",
- "user": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}
}
Get a list of all commits from a repository
Authorizations:
path Parameters
owner required | string owner of the repo |
repo required | string name of the repo |
query Parameters
sha | string SHA or branch to start listing commits from (usually 'master') |
path | string filepath of a file/dir |
stat | boolean include diff stats for every commit (disable for speedup, default 'true') |
verification | boolean include verification for every commit (disable for speedup, default 'true') |
files | boolean include a list of affected files for every commit (disable for speedup, default 'true') |
page | integer page number of results to return (1-based) |
limit | integer page size of results (ignored if used with 'path') |
not | string commits that match the given specifier will not be listed. |
Responses
Response samples
- 200
- 409
[- {
- "author": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "commit": {
- "author": {
- "date": "string",
- "email": "user@example.com",
- "name": "string"
}, - "committer": {
- "date": "string",
- "email": "user@example.com",
- "name": "string"
}, - "message": "string",
- "tree": {
- "created": "2019-08-24T14:15:22Z",
- "sha": "string",
- "url": "string"
}, - "url": "string",
- "verification": {
- "payload": "string",
- "reason": "string",
- "signature": "string",
- "signer": {
- "email": "user@example.com",
- "name": "string",
- "username": "string"
}, - "verified": true
}
}, - "committer": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "created": "2019-08-24T14:15:22Z",
- "files": [
- {
- "filename": "string",
- "status": "string"
}
], - "html_url": "string",
- "parents": [
- {
- "created": "2019-08-24T14:15:22Z",
- "sha": "string",
- "url": "string"
}
], - "sha": "string",
- "stats": {
- "additions": 0,
- "deletions": 0,
- "total": 0
}, - "url": "string"
}
]
Get a commit's combined status, by branch/tag/commit reference
Authorizations:
path Parameters
owner required | string owner of the repo |
repo required | string name of the repo |
ref required | string name of branch/tag/commit |
query Parameters
page | integer page number of results to return (1-based) |
limit | integer page size of results |
Responses
Response samples
- 200
{- "commit_url": "string",
- "repository": {
- "allow_merge_commits": true,
- "allow_rebase": true,
- "allow_rebase_explicit": true,
- "allow_rebase_update": true,
- "allow_squash_merge": true,
- "archived": true,
- "archived_at": "2019-08-24T14:15:22Z",
- "avatar_url": "string",
- "clone_url": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "default_allow_maintainer_edit": true,
- "default_branch": "string",
- "default_delete_branch_after_merge": true,
- "default_merge_style": "string",
- "description": "string",
- "empty": true,
- "external_tracker": {
- "external_tracker_format": "string",
- "external_tracker_regexp_pattern": "string",
- "external_tracker_style": "string",
- "external_tracker_url": "string"
}, - "external_wiki": {
- "external_wiki_url": "string"
}, - "fork": true,
- "forks_count": 0,
- "full_name": "string",
- "has_actions": true,
- "has_issues": true,
- "has_packages": true,
- "has_projects": true,
- "has_pull_requests": true,
- "has_releases": true,
- "has_wiki": true,
- "html_url": "string",
- "id": 0,
- "ignore_whitespace_conflicts": true,
- "internal": true,
- "internal_tracker": {
- "allow_only_contributors_to_track_time": true,
- "enable_issue_dependencies": true,
- "enable_time_tracker": true
}, - "language": "string",
- "languages_url": "string",
- "link": "string",
- "mirror": true,
- "mirror_interval": "string",
- "mirror_updated": "2019-08-24T14:15:22Z",
- "name": "string",
- "open_issues_count": 0,
- "open_pr_counter": 0,
- "original_url": "string",
- "owner": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "parent": { },
- "permissions": {
- "admin": true,
- "pull": true,
- "push": true
}, - "private": true,
- "release_counter": 0,
- "repo_transfer": {
- "doer": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "recipient": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "teams": [
- {
- "can_create_org_repo": true,
- "description": "string",
- "id": 0,
- "includes_all_repositories": true,
- "name": "string",
- "organization": {
- "avatar_url": "string",
- "description": "string",
- "email": "string",
- "full_name": "string",
- "id": 0,
- "location": "string",
- "name": "string",
- "repo_admin_change_team_access": true,
- "username": "string",
- "visibility": "string",
- "website": "string"
}, - "permission": "none",
- "units": [
- "repo.code",
- "repo.issues",
- "repo.ext_issues",
- "repo.wiki",
- "repo.pulls",
- "repo.releases",
- "repo.projects",
- "repo.ext_wiki"
], - "units_map": {
- "repo.code": "read",
- "repo.ext_issues": "none",
- "repo.ext_wiki": "none",
- "repo.issues": "write",
- "repo.projects": "none",
- "repo.pulls": "owner",
- "repo.releases": "none",
- "repo.wiki": "admin"
}
}
]
}, - "size": 0,
- "ssh_url": "string",
- "stars_count": 0,
- "template": true,
- "updated_at": "2019-08-24T14:15:22Z",
- "url": "string",
- "watchers_count": 0,
- "website": "string"
}, - "sha": "string",
- "state": "string",
- "statuses": [
- {
- "context": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "creator": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "description": "string",
- "id": 0,
- "status": "string",
- "target_url": "string",
- "updated_at": "2019-08-24T14:15:22Z",
- "url": "string"
}
], - "total_count": 0,
- "url": "string"
}
Get a commit's statuses, by branch/tag/commit reference
Authorizations:
path Parameters
owner required | string owner of the repo |
repo required | string name of the repo |
ref required | string name of branch/tag/commit |
query Parameters
sort | string Enum: "oldest" "recentupdate" "leastupdate" "leastindex" "highestindex" type of sort |
state | string Enum: "pending" "success" "error" "failure" "warning" type of state |
page | integer page number of results to return (1-based) |
limit | integer page size of results |
Responses
Response samples
- 200
[- {
- "context": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "creator": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "description": "string",
- "id": 0,
- "status": "string",
- "target_url": "string",
- "updated_at": "2019-08-24T14:15:22Z",
- "url": "string"
}
]
Gets the metadata of all the entries of the root dir
Authorizations:
path Parameters
owner required | string owner of the repo |
repo required | string name of the repo |
query Parameters
ref | string The name of the commit/branch/tag. Default the repository’s default branch (usually master) |
Responses
Response samples
- 200
[- {
- "_links": {
- "git": "string",
- "html": "string",
- "self": "string"
}, - "content": "string",
- "download_url": "string",
- "encoding": "string",
- "git_url": "string",
- "html_url": "string",
- "last_commit_sha": "string",
- "name": "string",
- "path": "string",
- "sha": "string",
- "size": 0,
- "submodule_git_url": "string",
- "target": "string",
- "type": "string",
- "url": "string"
}
]
Modify multiple files in a repository
Authorizations:
path Parameters
owner required | string owner of the repo |
repo required | string name of the repo |
Request Body schema: application/jsonrequired
object (Identity) Identity for a person's identity like an author or committer | |
branch | string branch (optional) to base this file from. if not given, the default branch is used |
object (Identity) Identity for a person's identity like an author or committer | |
object (CommitDateOptions) CommitDateOptions store dates for GIT_AUTHOR_DATE and GIT_COMMITTER_DATE | |
required | Array of objects (ChangeFileOperation) list of file operations |
message | string message (optional) for the commit of this file. if not supplied, a default message will be used |
new_branch | string new_branch (optional) will make a new branch from |
signoff | boolean Add a Signed-off-by trailer by the committer at the end of the commit log message. |
Responses
Request samples
- Payload
{- "author": {
- "email": "user@example.com",
- "name": "string"
}, - "branch": "string",
- "committer": {
- "email": "user@example.com",
- "name": "string"
}, - "dates": {
- "author": "2019-08-24T14:15:22Z",
- "committer": "2019-08-24T14:15:22Z"
}, - "files": [
- {
- "content": "string",
- "from_path": "string",
- "operation": "create",
- "path": "string",
- "sha": "string"
}
], - "message": "string",
- "new_branch": "string",
- "signoff": true
}
Response samples
- 201
{- "commit": {
- "author": {
- "date": "string",
- "email": "user@example.com",
- "name": "string"
}, - "committer": {
- "date": "string",
- "email": "user@example.com",
- "name": "string"
}, - "created": "2019-08-24T14:15:22Z",
- "html_url": "string",
- "message": "string",
- "parents": [
- {
- "created": "2019-08-24T14:15:22Z",
- "sha": "string",
- "url": "string"
}
], - "sha": "string",
- "tree": {
- "created": "2019-08-24T14:15:22Z",
- "sha": "string",
- "url": "string"
}, - "url": "string"
}, - "files": [
- {
- "_links": {
- "git": "string",
- "html": "string",
- "self": "string"
}, - "content": "string",
- "download_url": "string",
- "encoding": "string",
- "git_url": "string",
- "html_url": "string",
- "last_commit_sha": "string",
- "name": "string",
- "path": "string",
- "sha": "string",
- "size": 0,
- "submodule_git_url": "string",
- "target": "string",
- "type": "string",
- "url": "string"
}
], - "verification": {
- "payload": "string",
- "reason": "string",
- "signature": "string",
- "signer": {
- "email": "user@example.com",
- "name": "string",
- "username": "string"
}, - "verified": true
}
}
Gets the metadata and contents (if a file) of an entry in a repository, or a list of entries if a dir
Authorizations:
path Parameters
owner required | string owner of the repo |
repo required | string name of the repo |
filepath required | string path of the dir, file, symlink or submodule in the repo |
query Parameters
ref | string The name of the commit/branch/tag. Default the repository’s default branch (usually master) |
Responses
Response samples
- 200
{- "_links": {
- "git": "string",
- "html": "string",
- "self": "string"
}, - "content": "string",
- "download_url": "string",
- "encoding": "string",
- "git_url": "string",
- "html_url": "string",
- "last_commit_sha": "string",
- "name": "string",
- "path": "string",
- "sha": "string",
- "size": 0,
- "submodule_git_url": "string",
- "target": "string",
- "type": "string",
- "url": "string"
}
Update a file in a repository
Authorizations:
path Parameters
owner required | string owner of the repo |
repo required | string name of the repo |
filepath required | string path of the file to update |
Request Body schema: application/jsonrequired
object (Identity) Identity for a person's identity like an author or committer | |
branch | string branch (optional) to base this file from. if not given, the default branch is used |
object (Identity) Identity for a person's identity like an author or committer | |
content required | string content must be base64 encoded |
object (CommitDateOptions) CommitDateOptions store dates for GIT_AUTHOR_DATE and GIT_COMMITTER_DATE | |
from_path | string from_path (optional) is the path of the original file which will be moved/renamed to the path in the URL |
message | string message (optional) for the commit of this file. if not supplied, a default message will be used |
new_branch | string new_branch (optional) will make a new branch from |
sha required | string sha is the SHA for the file that already exists |
signoff | boolean Add a Signed-off-by trailer by the committer at the end of the commit log message. |
Responses
Request samples
- Payload
{- "author": {
- "email": "user@example.com",
- "name": "string"
}, - "branch": "string",
- "committer": {
- "email": "user@example.com",
- "name": "string"
}, - "content": "string",
- "dates": {
- "author": "2019-08-24T14:15:22Z",
- "committer": "2019-08-24T14:15:22Z"
}, - "from_path": "string",
- "message": "string",
- "new_branch": "string",
- "sha": "string",
- "signoff": true
}
Response samples
- 200
{- "commit": {
- "author": {
- "date": "string",
- "email": "user@example.com",
- "name": "string"
}, - "committer": {
- "date": "string",
- "email": "user@example.com",
- "name": "string"
}, - "created": "2019-08-24T14:15:22Z",
- "html_url": "string",
- "message": "string",
- "parents": [
- {
- "created": "2019-08-24T14:15:22Z",
- "sha": "string",
- "url": "string"
}
], - "sha": "string",
- "tree": {
- "created": "2019-08-24T14:15:22Z",
- "sha": "string",
- "url": "string"
}, - "url": "string"
}, - "content": {
- "_links": {
- "git": "string",
- "html": "string",
- "self": "string"
}, - "content": "string",
- "download_url": "string",
- "encoding": "string",
- "git_url": "string",
- "html_url": "string",
- "last_commit_sha": "string",
- "name": "string",
- "path": "string",
- "sha": "string",
- "size": 0,
- "submodule_git_url": "string",
- "target": "string",
- "type": "string",
- "url": "string"
}, - "verification": {
- "payload": "string",
- "reason": "string",
- "signature": "string",
- "signer": {
- "email": "user@example.com",
- "name": "string",
- "username": "string"
}, - "verified": true
}
}
Create a file in a repository
Authorizations:
path Parameters
owner required | string owner of the repo |
repo required | string name of the repo |
filepath required | string path of the file to create |
Request Body schema: application/jsonrequired
object (Identity) Identity for a person's identity like an author or committer | |
branch | string branch (optional) to base this file from. if not given, the default branch is used |
object (Identity) Identity for a person's identity like an author or committer | |
content required | string content must be base64 encoded |
object (CommitDateOptions) CommitDateOptions store dates for GIT_AUTHOR_DATE and GIT_COMMITTER_DATE | |
message | string message (optional) for the commit of this file. if not supplied, a default message will be used |
new_branch | string new_branch (optional) will make a new branch from |
signoff | boolean Add a Signed-off-by trailer by the committer at the end of the commit log message. |
Responses
Request samples
- Payload
{- "author": {
- "email": "user@example.com",
- "name": "string"
}, - "branch": "string",
- "committer": {
- "email": "user@example.com",
- "name": "string"
}, - "content": "string",
- "dates": {
- "author": "2019-08-24T14:15:22Z",
- "committer": "2019-08-24T14:15:22Z"
}, - "message": "string",
- "new_branch": "string",
- "signoff": true
}
Response samples
- 201
{- "commit": {
- "author": {
- "date": "string",
- "email": "user@example.com",
- "name": "string"
}, - "committer": {
- "date": "string",
- "email": "user@example.com",
- "name": "string"
}, - "created": "2019-08-24T14:15:22Z",
- "html_url": "string",
- "message": "string",
- "parents": [
- {
- "created": "2019-08-24T14:15:22Z",
- "sha": "string",
- "url": "string"
}
], - "sha": "string",
- "tree": {
- "created": "2019-08-24T14:15:22Z",
- "sha": "string",
- "url": "string"
}, - "url": "string"
}, - "content": {
- "_links": {
- "git": "string",
- "html": "string",
- "self": "string"
}, - "content": "string",
- "download_url": "string",
- "encoding": "string",
- "git_url": "string",
- "html_url": "string",
- "last_commit_sha": "string",
- "name": "string",
- "path": "string",
- "sha": "string",
- "size": 0,
- "submodule_git_url": "string",
- "target": "string",
- "type": "string",
- "url": "string"
}, - "verification": {
- "payload": "string",
- "reason": "string",
- "signature": "string",
- "signer": {
- "email": "user@example.com",
- "name": "string",
- "username": "string"
}, - "verified": true
}
}
Delete a file in a repository
Authorizations:
path Parameters
owner required | string owner of the repo |
repo required | string name of the repo |
filepath required | string path of the file to delete |
Request Body schema: application/jsonrequired
object (Identity) Identity for a person's identity like an author or committer | |
branch | string branch (optional) to base this file from. if not given, the default branch is used |
object (Identity) Identity for a person's identity like an author or committer | |
object (CommitDateOptions) CommitDateOptions store dates for GIT_AUTHOR_DATE and GIT_COMMITTER_DATE | |
message | string message (optional) for the commit of this file. if not supplied, a default message will be used |
new_branch | string new_branch (optional) will make a new branch from |
sha required | string sha is the SHA for the file that already exists |
signoff | boolean Add a Signed-off-by trailer by the committer at the end of the commit log message. |
Responses
Request samples
- Payload
{- "author": {
- "email": "user@example.com",
- "name": "string"
}, - "branch": "string",
- "committer": {
- "email": "user@example.com",
- "name": "string"
}, - "dates": {
- "author": "2019-08-24T14:15:22Z",
- "committer": "2019-08-24T14:15:22Z"
}, - "message": "string",
- "new_branch": "string",
- "sha": "string",
- "signoff": true
}
Response samples
- 200
{- "commit": {
- "author": {
- "date": "string",
- "email": "user@example.com",
- "name": "string"
}, - "committer": {
- "date": "string",
- "email": "user@example.com",
- "name": "string"
}, - "created": "2019-08-24T14:15:22Z",
- "html_url": "string",
- "message": "string",
- "parents": [
- {
- "created": "2019-08-24T14:15:22Z",
- "sha": "string",
- "url": "string"
}
], - "sha": "string",
- "tree": {
- "created": "2019-08-24T14:15:22Z",
- "sha": "string",
- "url": "string"
}, - "url": "string"
}, - "content": null,
- "verification": {
- "payload": "string",
- "reason": "string",
- "signature": "string",
- "signer": {
- "email": "user@example.com",
- "name": "string",
- "username": "string"
}, - "verified": true
}
}
Apply diff patch to repository
Authorizations:
path Parameters
owner required | string owner of the repo |
repo required | string name of the repo |
Request Body schema: application/jsonrequired
object (Identity) Identity for a person's identity like an author or committer | |
branch | string branch (optional) to base this file from. if not given, the default branch is used |
object (Identity) Identity for a person's identity like an author or committer | |
content required | string content must be base64 encoded |
object (CommitDateOptions) CommitDateOptions store dates for GIT_AUTHOR_DATE and GIT_COMMITTER_DATE | |
from_path | string from_path (optional) is the path of the original file which will be moved/renamed to the path in the URL |
message | string message (optional) for the commit of this file. if not supplied, a default message will be used |
new_branch | string new_branch (optional) will make a new branch from |
sha required | string sha is the SHA for the file that already exists |
signoff | boolean Add a Signed-off-by trailer by the committer at the end of the commit log message. |
Responses
Request samples
- Payload
{- "author": {
- "email": "user@example.com",
- "name": "string"
}, - "branch": "string",
- "committer": {
- "email": "user@example.com",
- "name": "string"
}, - "content": "string",
- "dates": {
- "author": "2019-08-24T14:15:22Z",
- "committer": "2019-08-24T14:15:22Z"
}, - "from_path": "string",
- "message": "string",
- "new_branch": "string",
- "sha": "string",
- "signoff": true
}
Response samples
- 200
{- "commit": {
- "author": {
- "date": "string",
- "email": "user@example.com",
- "name": "string"
}, - "committer": {
- "date": "string",
- "email": "user@example.com",
- "name": "string"
}, - "created": "2019-08-24T14:15:22Z",
- "html_url": "string",
- "message": "string",
- "parents": [
- {
- "created": "2019-08-24T14:15:22Z",
- "sha": "string",
- "url": "string"
}
], - "sha": "string",
- "tree": {
- "created": "2019-08-24T14:15:22Z",
- "sha": "string",
- "url": "string"
}, - "url": "string"
}, - "content": {
- "_links": {
- "git": "string",
- "html": "string",
- "self": "string"
}, - "content": "string",
- "download_url": "string",
- "encoding": "string",
- "git_url": "string",
- "html_url": "string",
- "last_commit_sha": "string",
- "name": "string",
- "path": "string",
- "sha": "string",
- "size": 0,
- "submodule_git_url": "string",
- "target": "string",
- "type": "string",
- "url": "string"
}, - "verification": {
- "payload": "string",
- "reason": "string",
- "signature": "string",
- "signer": {
- "email": "user@example.com",
- "name": "string",
- "username": "string"
}, - "verified": true
}
}
Get the EditorConfig definitions of a file in a repository
Authorizations:
path Parameters
owner required | string owner of the repo |
repo required | string name of the repo |
filepath required | string filepath of file to get |
query Parameters
ref | string The name of the commit/branch/tag. Default the repository’s default branch (usually master) |
Responses
List a repository's forks
Authorizations:
path Parameters
owner required | string owner of the repo |
repo required | string name of the repo |
query Parameters
page | integer page number of results to return (1-based) |
limit | integer page size of results |
Responses
Response samples
- 200
[- {
- "allow_merge_commits": true,
- "allow_rebase": true,
- "allow_rebase_explicit": true,
- "allow_rebase_update": true,
- "allow_squash_merge": true,
- "archived": true,
- "archived_at": "2019-08-24T14:15:22Z",
- "avatar_url": "string",
- "clone_url": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "default_allow_maintainer_edit": true,
- "default_branch": "string",
- "default_delete_branch_after_merge": true,
- "default_merge_style": "string",
- "description": "string",
- "empty": true,
- "external_tracker": {
- "external_tracker_format": "string",
- "external_tracker_regexp_pattern": "string",
- "external_tracker_style": "string",
- "external_tracker_url": "string"
}, - "external_wiki": {
- "external_wiki_url": "string"
}, - "fork": true,
- "forks_count": 0,
- "full_name": "string",
- "has_actions": true,
- "has_issues": true,
- "has_packages": true,
- "has_projects": true,
- "has_pull_requests": true,
- "has_releases": true,
- "has_wiki": true,
- "html_url": "string",
- "id": 0,
- "ignore_whitespace_conflicts": true,
- "internal": true,
- "internal_tracker": {
- "allow_only_contributors_to_track_time": true,
- "enable_issue_dependencies": true,
- "enable_time_tracker": true
}, - "language": "string",
- "languages_url": "string",
- "link": "string",
- "mirror": true,
- "mirror_interval": "string",
- "mirror_updated": "2019-08-24T14:15:22Z",
- "name": "string",
- "open_issues_count": 0,
- "open_pr_counter": 0,
- "original_url": "string",
- "owner": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "parent": { },
- "permissions": {
- "admin": true,
- "pull": true,
- "push": true
}, - "private": true,
- "release_counter": 0,
- "repo_transfer": {
- "doer": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "recipient": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "teams": [
- {
- "can_create_org_repo": true,
- "description": "string",
- "id": 0,
- "includes_all_repositories": true,
- "name": "string",
- "organization": {
- "avatar_url": "string",
- "description": "string",
- "email": "string",
- "full_name": "string",
- "id": 0,
- "location": "string",
- "name": "string",
- "repo_admin_change_team_access": true,
- "username": "string",
- "visibility": "string",
- "website": "string"
}, - "permission": "none",
- "units": [
- "repo.code",
- "repo.issues",
- "repo.ext_issues",
- "repo.wiki",
- "repo.pulls",
- "repo.releases",
- "repo.projects",
- "repo.ext_wiki"
], - "units_map": {
- "repo.code": "read",
- "repo.ext_issues": "none",
- "repo.ext_wiki": "none",
- "repo.issues": "write",
- "repo.projects": "none",
- "repo.pulls": "owner",
- "repo.releases": "none",
- "repo.wiki": "admin"
}
}
]
}, - "size": 0,
- "ssh_url": "string",
- "stars_count": 0,
- "template": true,
- "updated_at": "2019-08-24T14:15:22Z",
- "url": "string",
- "watchers_count": 0,
- "website": "string"
}
]
Fork a repository
Authorizations:
path Parameters
owner required | string owner of the repo to fork |
repo required | string name of the repo to fork |
Request Body schema:
name | string name of the forked repository |
organization | string organization name, if forking into an organization |
Responses
Request samples
- Payload
{- "name": "string",
- "organization": "string"
}
Response samples
- 202
{- "allow_merge_commits": true,
- "allow_rebase": true,
- "allow_rebase_explicit": true,
- "allow_rebase_update": true,
- "allow_squash_merge": true,
- "archived": true,
- "archived_at": "2019-08-24T14:15:22Z",
- "avatar_url": "string",
- "clone_url": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "default_allow_maintainer_edit": true,
- "default_branch": "string",
- "default_delete_branch_after_merge": true,
- "default_merge_style": "string",
- "description": "string",
- "empty": true,
- "external_tracker": {
- "external_tracker_format": "string",
- "external_tracker_regexp_pattern": "string",
- "external_tracker_style": "string",
- "external_tracker_url": "string"
}, - "external_wiki": {
- "external_wiki_url": "string"
}, - "fork": true,
- "forks_count": 0,
- "full_name": "string",
- "has_actions": true,
- "has_issues": true,
- "has_packages": true,
- "has_projects": true,
- "has_pull_requests": true,
- "has_releases": true,
- "has_wiki": true,
- "html_url": "string",
- "id": 0,
- "ignore_whitespace_conflicts": true,
- "internal": true,
- "internal_tracker": {
- "allow_only_contributors_to_track_time": true,
- "enable_issue_dependencies": true,
- "enable_time_tracker": true
}, - "language": "string",
- "languages_url": "string",
- "link": "string",
- "mirror": true,
- "mirror_interval": "string",
- "mirror_updated": "2019-08-24T14:15:22Z",
- "name": "string",
- "open_issues_count": 0,
- "open_pr_counter": 0,
- "original_url": "string",
- "owner": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "parent": { },
- "permissions": {
- "admin": true,
- "pull": true,
- "push": true
}, - "private": true,
- "release_counter": 0,
- "repo_transfer": {
- "doer": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "recipient": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "teams": [
- {
- "can_create_org_repo": true,
- "description": "string",
- "id": 0,
- "includes_all_repositories": true,
- "name": "string",
- "organization": {
- "avatar_url": "string",
- "description": "string",
- "email": "string",
- "full_name": "string",
- "id": 0,
- "location": "string",
- "name": "string",
- "repo_admin_change_team_access": true,
- "username": "string",
- "visibility": "string",
- "website": "string"
}, - "permission": "none",
- "units": [
- "repo.code",
- "repo.issues",
- "repo.ext_issues",
- "repo.wiki",
- "repo.pulls",
- "repo.releases",
- "repo.projects",
- "repo.ext_wiki"
], - "units_map": {
- "repo.code": "read",
- "repo.ext_issues": "none",
- "repo.ext_wiki": "none",
- "repo.issues": "write",
- "repo.projects": "none",
- "repo.pulls": "owner",
- "repo.releases": "none",
- "repo.wiki": "admin"
}
}
]
}, - "size": 0,
- "ssh_url": "string",
- "stars_count": 0,
- "template": true,
- "updated_at": "2019-08-24T14:15:22Z",
- "url": "string",
- "watchers_count": 0,
- "website": "string"
}
Gets the blob of a repository.
Authorizations:
path Parameters
owner required | string owner of the repo |
repo required | string name of the repo |
sha required | string sha of the commit |
Responses
Response samples
- 200
{- "content": "string",
- "encoding": "string",
- "sha": "string",
- "size": 0,
- "url": "string"
}
Get a single commit from a repository
Authorizations:
path Parameters
owner required | string owner of the repo |
repo required | string name of the repo |
sha required | string a git ref or commit sha |
query Parameters
stat | boolean include diff stats for every commit (disable for speedup, default 'true') |
verification | boolean include verification for every commit (disable for speedup, default 'true') |
files | boolean include a list of affected files for every commit (disable for speedup, default 'true') |
Responses
Response samples
- 200
{- "author": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "commit": {
- "author": {
- "date": "string",
- "email": "user@example.com",
- "name": "string"
}, - "committer": {
- "date": "string",
- "email": "user@example.com",
- "name": "string"
}, - "message": "string",
- "tree": {
- "created": "2019-08-24T14:15:22Z",
- "sha": "string",
- "url": "string"
}, - "url": "string",
- "verification": {
- "payload": "string",
- "reason": "string",
- "signature": "string",
- "signer": {
- "email": "user@example.com",
- "name": "string",
- "username": "string"
}, - "verified": true
}
}, - "committer": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "created": "2019-08-24T14:15:22Z",
- "files": [
- {
- "filename": "string",
- "status": "string"
}
], - "html_url": "string",
- "parents": [
- {
- "created": "2019-08-24T14:15:22Z",
- "sha": "string",
- "url": "string"
}
], - "sha": "string",
- "stats": {
- "additions": 0,
- "deletions": 0,
- "total": 0
}, - "url": "string"
}
Get a commit's diff or patch
Authorizations:
path Parameters
owner required | string owner of the repo |
repo required | string name of the repo |
sha required | string SHA of the commit to get |
diffType required | string Enum: "diff" "patch" whether the output is diff or patch |
Responses
Response samples
- 200
"string"
Get a note corresponding to a single commit from a repository
Authorizations:
path Parameters
owner required | string owner of the repo |
repo required | string name of the repo |
sha required | string a git ref or commit sha |
query Parameters
verification | boolean include verification for every commit (disable for speedup, default 'true') |
files | boolean include a list of affected files for every commit (disable for speedup, default 'true') |
Responses
Response samples
- 200
{- "commit": {
- "author": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "commit": {
- "author": {
- "date": "string",
- "email": "user@example.com",
- "name": "string"
}, - "committer": {
- "date": "string",
- "email": "user@example.com",
- "name": "string"
}, - "message": "string",
- "tree": {
- "created": "2019-08-24T14:15:22Z",
- "sha": "string",
- "url": "string"
}, - "url": "string",
- "verification": {
- "payload": "string",
- "reason": "string",
- "signature": "string",
- "signer": {
- "email": "user@example.com",
- "name": "string",
- "username": "string"
}, - "verified": true
}
}, - "committer": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "created": "2019-08-24T14:15:22Z",
- "files": [
- {
- "filename": "string",
- "status": "string"
}
], - "html_url": "string",
- "parents": [
- {
- "created": "2019-08-24T14:15:22Z",
- "sha": "string",
- "url": "string"
}
], - "sha": "string",
- "stats": {
- "additions": 0,
- "deletions": 0,
- "total": 0
}, - "url": "string"
}, - "message": "string"
}
Get specified ref or filtered repository's refs
Authorizations:
path Parameters
owner required | string owner of the repo |
repo required | string name of the repo |
Responses
Response samples
- 200
[- {
- "object": {
- "sha": "string",
- "type": "string",
- "url": "string"
}, - "ref": "string",
- "url": "string"
}
]
Get specified ref or filtered repository's refs
Authorizations:
path Parameters
owner required | string owner of the repo |
repo required | string name of the repo |
ref required | string part or full name of the ref |
Responses
Response samples
- 200
[- {
- "object": {
- "sha": "string",
- "type": "string",
- "url": "string"
}, - "ref": "string",
- "url": "string"
}
]
Gets the tag object of an annotated tag (not lightweight tags)
Authorizations:
path Parameters
owner required | string owner of the repo |
repo required | string name of the repo |
sha required | string sha of the tag. The Git tags API only supports annotated tag objects, not lightweight tags. |
Responses
Response samples
- 200
{- "message": "string",
- "object": {
- "sha": "string",
- "type": "string",
- "url": "string"
}, - "sha": "string",
- "tag": "string",
- "tagger": {
- "date": "string",
- "email": "user@example.com",
- "name": "string"
}, - "url": "string",
- "verification": {
- "payload": "string",
- "reason": "string",
- "signature": "string",
- "signer": {
- "email": "user@example.com",
- "name": "string",
- "username": "string"
}, - "verified": true
}
}
Gets the tree of a repository.
Authorizations:
path Parameters
owner required | string owner of the repo |
repo required | string name of the repo |
sha required | string sha of the commit |
query Parameters
recursive | boolean show all directories and files |
page | integer page number; the 'truncated' field in the response will be true if there are still more items after this page, false if the last page |
per_page | integer number of items per page |
Responses
Response samples
- 200
{- "page": 0,
- "sha": "string",
- "total_count": 0,
- "tree": [
- {
- "mode": "string",
- "path": "string",
- "sha": "string",
- "size": 0,
- "type": "string",
- "url": "string"
}
], - "truncated": true,
- "url": "string"
}
List the hooks in a repository
Authorizations:
path Parameters
owner required | string owner of the repo |
repo required | string name of the repo |
query Parameters
page | integer page number of results to return (1-based) |
limit | integer page size of results |
Responses
Response samples
- 200
[- {
- "active": true,
- "authorization_header": "string",
- "branch_filter": "string",
- "config": {
- "property1": "string",
- "property2": "string"
}, - "created_at": "2019-08-24T14:15:22Z",
- "events": [
- "string"
], - "id": 0,
- "type": "string",
- "updated_at": "2019-08-24T14:15:22Z"
}
]
Create a hook
Authorizations:
path Parameters
owner required | string owner of the repo |
repo required | string name of the repo |
Request Body schema: application/json
active | boolean Default: false |
authorization_header | string |
branch_filter | string |
required | object (CreateHookOptionConfig) CreateHookOptionConfig has all config options in it required are "content_type" and "url" Required |
events | Array of strings |
type required | string Enum: "dingtalk" "discord" "gitea" "gogs" "msteams" "slack" "telegram" "feishu" "wechatwork" "packagist" |
Responses
Request samples
- Payload
{- "active": false,
- "authorization_header": "string",
- "branch_filter": "string",
- "config": {
- "property1": "string",
- "property2": "string"
}, - "events": [
- "string"
], - "type": "dingtalk"
}
Response samples
- 201
{- "active": true,
- "authorization_header": "string",
- "branch_filter": "string",
- "config": {
- "property1": "string",
- "property2": "string"
}, - "created_at": "2019-08-24T14:15:22Z",
- "events": [
- "string"
], - "id": 0,
- "type": "string",
- "updated_at": "2019-08-24T14:15:22Z"
}
List the Git hooks in a repository
Authorizations:
path Parameters
owner required | string owner of the repo |
repo required | string name of the repo |
Responses
Response samples
- 200
[- {
- "content": "string",
- "is_active": true,
- "name": "string"
}
]
Get a Git hook
Authorizations:
path Parameters
owner required | string owner of the repo |
repo required | string name of the repo |
id required | string id of the hook to get |
Responses
Response samples
- 200
{- "content": "string",
- "is_active": true,
- "name": "string"
}
Edit a Git hook in a repository
Authorizations:
path Parameters
owner required | string owner of the repo |
repo required | string name of the repo |
id required | string id of the hook to get |
Request Body schema:
content | string |
Responses
Request samples
- Payload
{- "content": "string"
}
Response samples
- 200
{- "content": "string",
- "is_active": true,
- "name": "string"
}
Get a hook
Authorizations:
path Parameters
owner required | string owner of the repo |
repo required | string name of the repo |
id required | integer <int64> id of the hook to get |
Responses
Response samples
- 200
{- "active": true,
- "authorization_header": "string",
- "branch_filter": "string",
- "config": {
- "property1": "string",
- "property2": "string"
}, - "created_at": "2019-08-24T14:15:22Z",
- "events": [
- "string"
], - "id": 0,
- "type": "string",
- "updated_at": "2019-08-24T14:15:22Z"
}
Edit a hook in a repository
Authorizations:
path Parameters
owner required | string owner of the repo |
repo required | string name of the repo |
id required | integer <int64> index of the hook |
Request Body schema:
active | boolean |
authorization_header | string |
branch_filter | string |
object | |
events | Array of strings |
Responses
Request samples
- Payload
{- "active": true,
- "authorization_header": "string",
- "branch_filter": "string",
- "config": {
- "property1": "string",
- "property2": "string"
}, - "events": [
- "string"
]
}
Response samples
- 200
{- "active": true,
- "authorization_header": "string",
- "branch_filter": "string",
- "config": {
- "property1": "string",
- "property2": "string"
}, - "created_at": "2019-08-24T14:15:22Z",
- "events": [
- "string"
], - "id": 0,
- "type": "string",
- "updated_at": "2019-08-24T14:15:22Z"
}
Test a push webhook
Authorizations:
path Parameters
owner required | string owner of the repo |
repo required | string name of the repo |
id required | integer <int64> id of the hook to test |
query Parameters
ref | string The name of the commit/branch/tag, indicates which commit will be loaded to the webhook payload. |
Responses
Returns the issue config for a repo
Authorizations:
path Parameters
owner required | string owner of the repo |
repo required | string name of the repo |
Responses
Response samples
- 200
{- "blank_issues_enabled": true,
- "contact_links": [
- {
- "about": "string",
- "name": "string",
- "url": "string"
}
]
}
Returns the validation information for a issue config
Authorizations:
path Parameters
owner required | string owner of the repo |
repo required | string name of the repo |
Responses
Response samples
- 200
{- "message": "string",
- "valid": true
}
Get available issue templates for a repository
Authorizations:
path Parameters
owner required | string owner of the repo |
repo required | string name of the repo |
Responses
Response samples
- 200
[- {
- "about": "string",
- "body": [
- {
- "attributes": {
- "property1": null,
- "property2": null
}, - "id": "string",
- "type": "string",
- "validations": {
- "property1": null,
- "property2": null
}
}
], - "content": "string",
- "file_name": "string",
- "labels": [
- "string"
], - "name": "string",
- "ref": "string",
- "title": "string"
}
]
List a repo's pinned issues
Authorizations:
path Parameters
owner required | string owner of the repo |
repo required | string name of the repo |
Responses
Response samples
- 200
[- {
- "assets": [
- {
- "browser_download_url": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "download_count": 0,
- "id": 0,
- "name": "string",
- "size": 0,
- "uuid": "string"
}
], - "assignee": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "assignees": [
- {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}
], - "body": "string",
- "closed_at": "2019-08-24T14:15:22Z",
- "comments": 0,
- "created_at": "2019-08-24T14:15:22Z",
- "due_date": "2019-08-24T14:15:22Z",
- "html_url": "string",
- "id": 0,
- "is_locked": true,
- "labels": [
- {
- "color": "00aabb",
- "description": "string",
- "exclusive": false,
- "id": 0,
- "is_archived": false,
- "name": "string",
- "url": "string"
}
], - "milestone": {
- "closed_at": "2019-08-24T14:15:22Z",
- "closed_issues": 0,
- "created_at": "2019-08-24T14:15:22Z",
- "description": "string",
- "due_on": "2019-08-24T14:15:22Z",
- "id": 0,
- "open_issues": 0,
- "state": "string",
- "title": "string",
- "updated_at": "2019-08-24T14:15:22Z"
}, - "number": 0,
- "original_author": "string",
- "original_author_id": 0,
- "pin_order": 0,
- "pull_request": {
- "merged": true,
- "merged_at": "2019-08-24T14:15:22Z"
}, - "ref": "string",
- "repository": {
- "full_name": "string",
- "id": 0,
- "name": "string",
- "owner": "string"
}, - "state": "string",
- "title": "string",
- "updated_at": "2019-08-24T14:15:22Z",
- "url": "string",
- "user": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}
}
]
List a repository's keys
Authorizations:
path Parameters
owner required | string owner of the repo |
repo required | string name of the repo |
query Parameters
key_id | integer the key_id to search for |
fingerprint | string fingerprint of the key |
page | integer page number of results to return (1-based) |
limit | integer page size of results |
Responses
Response samples
- 200
[- {
- "created_at": "2019-08-24T14:15:22Z",
- "fingerprint": "string",
- "id": 0,
- "key": "string",
- "key_id": 0,
- "read_only": true,
- "repository": {
- "allow_merge_commits": true,
- "allow_rebase": true,
- "allow_rebase_explicit": true,
- "allow_rebase_update": true,
- "allow_squash_merge": true,
- "archived": true,
- "archived_at": "2019-08-24T14:15:22Z",
- "avatar_url": "string",
- "clone_url": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "default_allow_maintainer_edit": true,
- "default_branch": "string",
- "default_delete_branch_after_merge": true,
- "default_merge_style": "string",
- "description": "string",
- "empty": true,
- "external_tracker": {
- "external_tracker_format": "string",
- "external_tracker_regexp_pattern": "string",
- "external_tracker_style": "string",
- "external_tracker_url": "string"
}, - "external_wiki": {
- "external_wiki_url": "string"
}, - "fork": true,
- "forks_count": 0,
- "full_name": "string",
- "has_actions": true,
- "has_issues": true,
- "has_packages": true,
- "has_projects": true,
- "has_pull_requests": true,
- "has_releases": true,
- "has_wiki": true,
- "html_url": "string",
- "id": 0,
- "ignore_whitespace_conflicts": true,
- "internal": true,
- "internal_tracker": {
- "allow_only_contributors_to_track_time": true,
- "enable_issue_dependencies": true,
- "enable_time_tracker": true
}, - "language": "string",
- "languages_url": "string",
- "link": "string",
- "mirror": true,
- "mirror_interval": "string",
- "mirror_updated": "2019-08-24T14:15:22Z",
- "name": "string",
- "open_issues_count": 0,
- "open_pr_counter": 0,
- "original_url": "string",
- "owner": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "parent": { },
- "permissions": {
- "admin": true,
- "pull": true,
- "push": true
}, - "private": true,
- "release_counter": 0,
- "repo_transfer": {
- "doer": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "recipient": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "teams": [
- {
- "can_create_org_repo": true,
- "description": "string",
- "id": 0,
- "includes_all_repositories": true,
- "name": "string",
- "organization": {
- "avatar_url": "string",
- "description": "string",
- "email": "string",
- "full_name": "string",
- "id": 0,
- "location": "string",
- "name": "string",
- "repo_admin_change_team_access": true,
- "username": "string",
- "visibility": "string",
- "website": "string"
}, - "permission": "none",
- "units": [
- "repo.code",
- "repo.issues",
- "repo.ext_issues",
- "repo.wiki",
- "repo.pulls",
- "repo.releases",
- "repo.projects",
- "repo.ext_wiki"
], - "units_map": {
- "repo.code": "read",
- "repo.ext_issues": "none",
- "repo.ext_wiki": "none",
- "repo.issues": "write",
- "repo.projects": "none",
- "repo.pulls": "owner",
- "repo.releases": "none",
- "repo.wiki": "admin"
}
}
]
}, - "size": 0,
- "ssh_url": "string",
- "stars_count": 0,
- "template": true,
- "updated_at": "2019-08-24T14:15:22Z",
- "url": "string",
- "watchers_count": 0,
- "website": "string"
}, - "title": "string",
- "url": "string"
}
]
Add a key to a repository
Authorizations:
path Parameters
owner required | string owner of the repo |
repo required | string name of the repo |
Request Body schema: application/json
key required | string unique An armored SSH key to add |
read_only | boolean Describe if the key has only read access or read/write |
title required | string unique Title of the key to add |
Responses
Request samples
- Payload
{- "key": "string",
- "read_only": true,
- "title": "string"
}
Response samples
- 201
{- "created_at": "2019-08-24T14:15:22Z",
- "fingerprint": "string",
- "id": 0,
- "key": "string",
- "key_id": 0,
- "read_only": true,
- "repository": {
- "allow_merge_commits": true,
- "allow_rebase": true,
- "allow_rebase_explicit": true,
- "allow_rebase_update": true,
- "allow_squash_merge": true,
- "archived": true,
- "archived_at": "2019-08-24T14:15:22Z",
- "avatar_url": "string",
- "clone_url": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "default_allow_maintainer_edit": true,
- "default_branch": "string",
- "default_delete_branch_after_merge": true,
- "default_merge_style": "string",
- "description": "string",
- "empty": true,
- "external_tracker": {
- "external_tracker_format": "string",
- "external_tracker_regexp_pattern": "string",
- "external_tracker_style": "string",
- "external_tracker_url": "string"
}, - "external_wiki": {
- "external_wiki_url": "string"
}, - "fork": true,
- "forks_count": 0,
- "full_name": "string",
- "has_actions": true,
- "has_issues": true,
- "has_packages": true,
- "has_projects": true,
- "has_pull_requests": true,
- "has_releases": true,
- "has_wiki": true,
- "html_url": "string",
- "id": 0,
- "ignore_whitespace_conflicts": true,
- "internal": true,
- "internal_tracker": {
- "allow_only_contributors_to_track_time": true,
- "enable_issue_dependencies": true,
- "enable_time_tracker": true
}, - "language": "string",
- "languages_url": "string",
- "link": "string",
- "mirror": true,
- "mirror_interval": "string",
- "mirror_updated": "2019-08-24T14:15:22Z",
- "name": "string",
- "open_issues_count": 0,
- "open_pr_counter": 0,
- "original_url": "string",
- "owner": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "parent": { },
- "permissions": {
- "admin": true,
- "pull": true,
- "push": true
}, - "private": true,
- "release_counter": 0,
- "repo_transfer": {
- "doer": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "recipient": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "teams": [
- {
- "can_create_org_repo": true,
- "description": "string",
- "id": 0,
- "includes_all_repositories": true,
- "name": "string",
- "organization": {
- "avatar_url": "string",
- "description": "string",
- "email": "string",
- "full_name": "string",
- "id": 0,
- "location": "string",
- "name": "string",
- "repo_admin_change_team_access": true,
- "username": "string",
- "visibility": "string",
- "website": "string"
}, - "permission": "none",
- "units": [
- "repo.code",
- "repo.issues",
- "repo.ext_issues",
- "repo.wiki",
- "repo.pulls",
- "repo.releases",
- "repo.projects",
- "repo.ext_wiki"
], - "units_map": {
- "repo.code": "read",
- "repo.ext_issues": "none",
- "repo.ext_wiki": "none",
- "repo.issues": "write",
- "repo.projects": "none",
- "repo.pulls": "owner",
- "repo.releases": "none",
- "repo.wiki": "admin"
}
}
]
}, - "size": 0,
- "ssh_url": "string",
- "stars_count": 0,
- "template": true,
- "updated_at": "2019-08-24T14:15:22Z",
- "url": "string",
- "watchers_count": 0,
- "website": "string"
}, - "title": "string",
- "url": "string"
}
Get a repository's key by id
Authorizations:
path Parameters
owner required | string owner of the repo |
repo required | string name of the repo |
id required | integer <int64> id of the key to get |
Responses
Response samples
- 200
{- "created_at": "2019-08-24T14:15:22Z",
- "fingerprint": "string",
- "id": 0,
- "key": "string",
- "key_id": 0,
- "read_only": true,
- "repository": {
- "allow_merge_commits": true,
- "allow_rebase": true,
- "allow_rebase_explicit": true,
- "allow_rebase_update": true,
- "allow_squash_merge": true,
- "archived": true,
- "archived_at": "2019-08-24T14:15:22Z",
- "avatar_url": "string",
- "clone_url": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "default_allow_maintainer_edit": true,
- "default_branch": "string",
- "default_delete_branch_after_merge": true,
- "default_merge_style": "string",
- "description": "string",
- "empty": true,
- "external_tracker": {
- "external_tracker_format": "string",
- "external_tracker_regexp_pattern": "string",
- "external_tracker_style": "string",
- "external_tracker_url": "string"
}, - "external_wiki": {
- "external_wiki_url": "string"
}, - "fork": true,
- "forks_count": 0,
- "full_name": "string",
- "has_actions": true,
- "has_issues": true,
- "has_packages": true,
- "has_projects": true,
- "has_pull_requests": true,
- "has_releases": true,
- "has_wiki": true,
- "html_url": "string",
- "id": 0,
- "ignore_whitespace_conflicts": true,
- "internal": true,
- "internal_tracker": {
- "allow_only_contributors_to_track_time": true,
- "enable_issue_dependencies": true,
- "enable_time_tracker": true
}, - "language": "string",
- "languages_url": "string",
- "link": "string",
- "mirror": true,
- "mirror_interval": "string",
- "mirror_updated": "2019-08-24T14:15:22Z",
- "name": "string",
- "open_issues_count": 0,
- "open_pr_counter": 0,
- "original_url": "string",
- "owner": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "parent": { },
- "permissions": {
- "admin": true,
- "pull": true,
- "push": true
}, - "private": true,
- "release_counter": 0,
- "repo_transfer": {
- "doer": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "recipient": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "teams": [
- {
- "can_create_org_repo": true,
- "description": "string",
- "id": 0,
- "includes_all_repositories": true,
- "name": "string",
- "organization": {
- "avatar_url": "string",
- "description": "string",
- "email": "string",
- "full_name": "string",
- "id": 0,
- "location": "string",
- "name": "string",
- "repo_admin_change_team_access": true,
- "username": "string",
- "visibility": "string",
- "website": "string"
}, - "permission": "none",
- "units": [
- "repo.code",
- "repo.issues",
- "repo.ext_issues",
- "repo.wiki",
- "repo.pulls",
- "repo.releases",
- "repo.projects",
- "repo.ext_wiki"
], - "units_map": {
- "repo.code": "read",
- "repo.ext_issues": "none",
- "repo.ext_wiki": "none",
- "repo.issues": "write",
- "repo.projects": "none",
- "repo.pulls": "owner",
- "repo.releases": "none",
- "repo.wiki": "admin"
}
}
]
}, - "size": 0,
- "ssh_url": "string",
- "stars_count": 0,
- "template": true,
- "updated_at": "2019-08-24T14:15:22Z",
- "url": "string",
- "watchers_count": 0,
- "website": "string"
}, - "title": "string",
- "url": "string"
}
Get languages and number of bytes of code written
Authorizations:
path Parameters
owner required | string owner of the repo |
repo required | string name of the repo |
Responses
Response samples
- 200
{- "property1": 0,
- "property2": 0
}
Get a file or it's LFS object from a repository
Authorizations:
path Parameters
owner required | string owner of the repo |
repo required | string name of the repo |
filepath required | string filepath of the file to get |
query Parameters
ref | string The name of the commit/branch/tag. Default the repository’s default branch (usually master) |
Responses
Returns if new Issue Pins are allowed
Authorizations:
path Parameters
owner required | string owner of the repo |
repo required | string name of the repo |
Responses
Response samples
- 200
{- "issues": true,
- "pull_requests": true
}
List a repo's pull requests
Authorizations:
path Parameters
owner required | string owner of the repo |
repo required | string name of the repo |
query Parameters
state | string Enum: "closed" "open" "all" State of pull request: open or closed (optional) |
sort | string Enum: "oldest" "recentupdate" "leastupdate" "mostcomment" "leastcomment" "priority" Type of sort |
milestone | integer <int64> ID of the milestone |
labels | Array of integers <int64> [ items <int64 > ] Label IDs |
page | integer page number of results to return (1-based) |
limit | integer page size of results |
Responses
Response samples
- 200
[- {
- "allow_maintainer_edit": true,
- "assignee": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "assignees": [
- {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}
], - "base": {
- "label": "string",
- "ref": "string",
- "repo": {
- "allow_merge_commits": true,
- "allow_rebase": true,
- "allow_rebase_explicit": true,
- "allow_rebase_update": true,
- "allow_squash_merge": true,
- "archived": true,
- "archived_at": "2019-08-24T14:15:22Z",
- "avatar_url": "string",
- "clone_url": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "default_allow_maintainer_edit": true,
- "default_branch": "string",
- "default_delete_branch_after_merge": true,
- "default_merge_style": "string",
- "description": "string",
- "empty": true,
- "external_tracker": {
- "external_tracker_format": "string",
- "external_tracker_regexp_pattern": "string",
- "external_tracker_style": "string",
- "external_tracker_url": "string"
}, - "external_wiki": {
- "external_wiki_url": "string"
}, - "fork": true,
- "forks_count": 0,
- "full_name": "string",
- "has_actions": true,
- "has_issues": true,
- "has_packages": true,
- "has_projects": true,
- "has_pull_requests": true,
- "has_releases": true,
- "has_wiki": true,
- "html_url": "string",
- "id": 0,
- "ignore_whitespace_conflicts": true,
- "internal": true,
- "internal_tracker": {
- "allow_only_contributors_to_track_time": true,
- "enable_issue_dependencies": true,
- "enable_time_tracker": true
}, - "language": "string",
- "languages_url": "string",
- "link": "string",
- "mirror": true,
- "mirror_interval": "string",
- "mirror_updated": "2019-08-24T14:15:22Z",
- "name": "string",
- "open_issues_count": 0,
- "open_pr_counter": 0,
- "original_url": "string",
- "owner": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "parent": { },
- "permissions": {
- "admin": true,
- "pull": true,
- "push": true
}, - "private": true,
- "release_counter": 0,
- "repo_transfer": {
- "doer": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "recipient": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "teams": [
- {
- "can_create_org_repo": true,
- "description": "string",
- "id": 0,
- "includes_all_repositories": true,
- "name": "string",
- "organization": {
- "avatar_url": "string",
- "description": "string",
- "email": "string",
- "full_name": "string",
- "id": 0,
- "location": "string",
- "name": "string",
- "repo_admin_change_team_access": true,
- "username": "string",
- "visibility": "string",
- "website": "string"
}, - "permission": "none",
- "units": [
- "repo.code",
- "repo.issues",
- "repo.ext_issues",
- "repo.wiki",
- "repo.pulls",
- "repo.releases",
- "repo.projects",
- "repo.ext_wiki"
], - "units_map": {
- "repo.code": "read",
- "repo.ext_issues": "none",
- "repo.ext_wiki": "none",
- "repo.issues": "write",
- "repo.projects": "none",
- "repo.pulls": "owner",
- "repo.releases": "none",
- "repo.wiki": "admin"
}
}
]
}, - "size": 0,
- "ssh_url": "string",
- "stars_count": 0,
- "template": true,
- "updated_at": "2019-08-24T14:15:22Z",
- "url": "string",
- "watchers_count": 0,
- "website": "string"
}, - "repo_id": 0,
- "sha": "string"
}, - "body": "string",
- "closed_at": "2019-08-24T14:15:22Z",
- "comments": 0,
- "created_at": "2019-08-24T14:15:22Z",
- "diff_url": "string",
- "due_date": "2019-08-24T14:15:22Z",
- "head": {
- "label": "string",
- "ref": "string",
- "repo": {
- "allow_merge_commits": true,
- "allow_rebase": true,
- "allow_rebase_explicit": true,
- "allow_rebase_update": true,
- "allow_squash_merge": true,
- "archived": true,
- "archived_at": "2019-08-24T14:15:22Z",
- "avatar_url": "string",
- "clone_url": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "default_allow_maintainer_edit": true,
- "default_branch": "string",
- "default_delete_branch_after_merge": true,
- "default_merge_style": "string",
- "description": "string",
- "empty": true,
- "external_tracker": {
- "external_tracker_format": "string",
- "external_tracker_regexp_pattern": "string",
- "external_tracker_style": "string",
- "external_tracker_url": "string"
}, - "external_wiki": {
- "external_wiki_url": "string"
}, - "fork": true,
- "forks_count": 0,
- "full_name": "string",
- "has_actions": true,
- "has_issues": true,
- "has_packages": true,
- "has_projects": true,
- "has_pull_requests": true,
- "has_releases": true,
- "has_wiki": true,
- "html_url": "string",
- "id": 0,
- "ignore_whitespace_conflicts": true,
- "internal": true,
- "internal_tracker": {
- "allow_only_contributors_to_track_time": true,
- "enable_issue_dependencies": true,
- "enable_time_tracker": true
}, - "language": "string",
- "languages_url": "string",
- "link": "string",
- "mirror": true,
- "mirror_interval": "string",
- "mirror_updated": "2019-08-24T14:15:22Z",
- "name": "string",
- "open_issues_count": 0,
- "open_pr_counter": 0,
- "original_url": "string",
- "owner": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "parent": { },
- "permissions": {
- "admin": true,
- "pull": true,
- "push": true
}, - "private": true,
- "release_counter": 0,
- "repo_transfer": {
- "doer": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "recipient": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "teams": [
- {
- "can_create_org_repo": true,
- "description": "string",
- "id": 0,
- "includes_all_repositories": true,
- "name": "string",
- "organization": {
- "avatar_url": "string",
- "description": "string",
- "email": "string",
- "full_name": "string",
- "id": 0,
- "location": "string",
- "name": "string",
- "repo_admin_change_team_access": true,
- "username": "string",
- "visibility": "string",
- "website": "string"
}, - "permission": "none",
- "units": [
- "repo.code",
- "repo.issues",
- "repo.ext_issues",
- "repo.wiki",
- "repo.pulls",
- "repo.releases",
- "repo.projects",
- "repo.ext_wiki"
], - "units_map": {
- "repo.code": "read",
- "repo.ext_issues": "none",
- "repo.ext_wiki": "none",
- "repo.issues": "write",
- "repo.projects": "none",
- "repo.pulls": "owner",
- "repo.releases": "none",
- "repo.wiki": "admin"
}
}
]
}, - "size": 0,
- "ssh_url": "string",
- "stars_count": 0,
- "template": true,
- "updated_at": "2019-08-24T14:15:22Z",
- "url": "string",
- "watchers_count": 0,
- "website": "string"
}, - "repo_id": 0,
- "sha": "string"
}, - "html_url": "string",
- "id": 0,
- "is_locked": true,
- "labels": [
- {
- "color": "00aabb",
- "description": "string",
- "exclusive": false,
- "id": 0,
- "is_archived": false,
- "name": "string",
- "url": "string"
}
], - "merge_base": "string",
- "merge_commit_sha": "string",
- "mergeable": true,
- "merged": true,
- "merged_at": "2019-08-24T14:15:22Z",
- "merged_by": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "milestone": {
- "closed_at": "2019-08-24T14:15:22Z",
- "closed_issues": 0,
- "created_at": "2019-08-24T14:15:22Z",
- "description": "string",
- "due_on": "2019-08-24T14:15:22Z",
- "id": 0,
- "open_issues": 0,
- "state": "string",
- "title": "string",
- "updated_at": "2019-08-24T14:15:22Z"
}, - "number": 0,
- "patch_url": "string",
- "pin_order": 0,
- "requested_reviewers": [
- {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}
], - "state": "string",
- "title": "string",
- "updated_at": "2019-08-24T14:15:22Z",
- "url": "string",
- "user": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}
}
]
Create a pull request
Authorizations:
path Parameters
owner required | string owner of the repo |
repo required | string name of the repo |
Request Body schema: application/json
assignee | string |
assignees | Array of strings |
base | string |
body | string |
due_date | string <date-time> |
head | string |
labels | Array of integers <int64> [ items <int64 > ] |
milestone | integer <int64> |
title | string |
Responses
Request samples
- Payload
{- "assignee": "string",
- "assignees": [
- "string"
], - "base": "string",
- "body": "string",
- "due_date": "2019-08-24T14:15:22Z",
- "head": "string",
- "labels": [
- 0
], - "milestone": 0,
- "title": "string"
}
Response samples
- 201
{- "allow_maintainer_edit": true,
- "assignee": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "assignees": [
- {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}
], - "base": {
- "label": "string",
- "ref": "string",
- "repo": {
- "allow_merge_commits": true,
- "allow_rebase": true,
- "allow_rebase_explicit": true,
- "allow_rebase_update": true,
- "allow_squash_merge": true,
- "archived": true,
- "archived_at": "2019-08-24T14:15:22Z",
- "avatar_url": "string",
- "clone_url": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "default_allow_maintainer_edit": true,
- "default_branch": "string",
- "default_delete_branch_after_merge": true,
- "default_merge_style": "string",
- "description": "string",
- "empty": true,
- "external_tracker": {
- "external_tracker_format": "string",
- "external_tracker_regexp_pattern": "string",
- "external_tracker_style": "string",
- "external_tracker_url": "string"
}, - "external_wiki": {
- "external_wiki_url": "string"
}, - "fork": true,
- "forks_count": 0,
- "full_name": "string",
- "has_actions": true,
- "has_issues": true,
- "has_packages": true,
- "has_projects": true,
- "has_pull_requests": true,
- "has_releases": true,
- "has_wiki": true,
- "html_url": "string",
- "id": 0,
- "ignore_whitespace_conflicts": true,
- "internal": true,
- "internal_tracker": {
- "allow_only_contributors_to_track_time": true,
- "enable_issue_dependencies": true,
- "enable_time_tracker": true
}, - "language": "string",
- "languages_url": "string",
- "link": "string",
- "mirror": true,
- "mirror_interval": "string",
- "mirror_updated": "2019-08-24T14:15:22Z",
- "name": "string",
- "open_issues_count": 0,
- "open_pr_counter": 0,
- "original_url": "string",
- "owner": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "parent": { },
- "permissions": {
- "admin": true,
- "pull": true,
- "push": true
}, - "private": true,
- "release_counter": 0,
- "repo_transfer": {
- "doer": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "recipient": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "teams": [
- {
- "can_create_org_repo": true,
- "description": "string",
- "id": 0,
- "includes_all_repositories": true,
- "name": "string",
- "organization": {
- "avatar_url": "string",
- "description": "string",
- "email": "string",
- "full_name": "string",
- "id": 0,
- "location": "string",
- "name": "string",
- "repo_admin_change_team_access": true,
- "username": "string",
- "visibility": "string",
- "website": "string"
}, - "permission": "none",
- "units": [
- "repo.code",
- "repo.issues",
- "repo.ext_issues",
- "repo.wiki",
- "repo.pulls",
- "repo.releases",
- "repo.projects",
- "repo.ext_wiki"
], - "units_map": {
- "repo.code": "read",
- "repo.ext_issues": "none",
- "repo.ext_wiki": "none",
- "repo.issues": "write",
- "repo.projects": "none",
- "repo.pulls": "owner",
- "repo.releases": "none",
- "repo.wiki": "admin"
}
}
]
}, - "size": 0,
- "ssh_url": "string",
- "stars_count": 0,
- "template": true,
- "updated_at": "2019-08-24T14:15:22Z",
- "url": "string",
- "watchers_count": 0,
- "website": "string"
}, - "repo_id": 0,
- "sha": "string"
}, - "body": "string",
- "closed_at": "2019-08-24T14:15:22Z",
- "comments": 0,
- "created_at": "2019-08-24T14:15:22Z",
- "diff_url": "string",
- "due_date": "2019-08-24T14:15:22Z",
- "head": {
- "label": "string",
- "ref": "string",
- "repo": {
- "allow_merge_commits": true,
- "allow_rebase": true,
- "allow_rebase_explicit": true,
- "allow_rebase_update": true,
- "allow_squash_merge": true,
- "archived": true,
- "archived_at": "2019-08-24T14:15:22Z",
- "avatar_url": "string",
- "clone_url": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "default_allow_maintainer_edit": true,
- "default_branch": "string",
- "default_delete_branch_after_merge": true,
- "default_merge_style": "string",
- "description": "string",
- "empty": true,
- "external_tracker": {
- "external_tracker_format": "string",
- "external_tracker_regexp_pattern": "string",
- "external_tracker_style": "string",
- "external_tracker_url": "string"
}, - "external_wiki": {
- "external_wiki_url": "string"
}, - "fork": true,
- "forks_count": 0,
- "full_name": "string",
- "has_actions": true,
- "has_issues": true,
- "has_packages": true,
- "has_projects": true,
- "has_pull_requests": true,
- "has_releases": true,
- "has_wiki": true,
- "html_url": "string",
- "id": 0,
- "ignore_whitespace_conflicts": true,
- "internal": true,
- "internal_tracker": {
- "allow_only_contributors_to_track_time": true,
- "enable_issue_dependencies": true,
- "enable_time_tracker": true
}, - "language": "string",
- "languages_url": "string",
- "link": "string",
- "mirror": true,
- "mirror_interval": "string",
- "mirror_updated": "2019-08-24T14:15:22Z",
- "name": "string",
- "open_issues_count": 0,
- "open_pr_counter": 0,
- "original_url": "string",
- "owner": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "parent": { },
- "permissions": {
- "admin": true,
- "pull": true,
- "push": true
}, - "private": true,
- "release_counter": 0,
- "repo_transfer": {
- "doer": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "recipient": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "teams": [
- {
- "can_create_org_repo": true,
- "description": "string",
- "id": 0,
- "includes_all_repositories": true,
- "name": "string",
- "organization": {
- "avatar_url": "string",
- "description": "string",
- "email": "string",
- "full_name": "string",
- "id": 0,
- "location": "string",
- "name": "string",
- "repo_admin_change_team_access": true,
- "username": "string",
- "visibility": "string",
- "website": "string"
}, - "permission": "none",
- "units": [
- "repo.code",
- "repo.issues",
- "repo.ext_issues",
- "repo.wiki",
- "repo.pulls",
- "repo.releases",
- "repo.projects",
- "repo.ext_wiki"
], - "units_map": {
- "repo.code": "read",
- "repo.ext_issues": "none",
- "repo.ext_wiki": "none",
- "repo.issues": "write",
- "repo.projects": "none",
- "repo.pulls": "owner",
- "repo.releases": "none",
- "repo.wiki": "admin"
}
}
]
}, - "size": 0,
- "ssh_url": "string",
- "stars_count": 0,
- "template": true,
- "updated_at": "2019-08-24T14:15:22Z",
- "url": "string",
- "watchers_count": 0,
- "website": "string"
}, - "repo_id": 0,
- "sha": "string"
}, - "html_url": "string",
- "id": 0,
- "is_locked": true,
- "labels": [
- {
- "color": "00aabb",
- "description": "string",
- "exclusive": false,
- "id": 0,
- "is_archived": false,
- "name": "string",
- "url": "string"
}
], - "merge_base": "string",
- "merge_commit_sha": "string",
- "mergeable": true,
- "merged": true,
- "merged_at": "2019-08-24T14:15:22Z",
- "merged_by": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "milestone": {
- "closed_at": "2019-08-24T14:15:22Z",
- "closed_issues": 0,
- "created_at": "2019-08-24T14:15:22Z",
- "description": "string",
- "due_on": "2019-08-24T14:15:22Z",
- "id": 0,
- "open_issues": 0,
- "state": "string",
- "title": "string",
- "updated_at": "2019-08-24T14:15:22Z"
}, - "number": 0,
- "patch_url": "string",
- "pin_order": 0,
- "requested_reviewers": [
- {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}
], - "state": "string",
- "title": "string",
- "updated_at": "2019-08-24T14:15:22Z",
- "url": "string",
- "user": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}
}
List a repo's pinned pull requests
Authorizations:
path Parameters
owner required | string owner of the repo |
repo required | string name of the repo |
Responses
Response samples
- 200
[- {
- "allow_maintainer_edit": true,
- "assignee": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "assignees": [
- {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}
], - "base": {
- "label": "string",
- "ref": "string",
- "repo": {
- "allow_merge_commits": true,
- "allow_rebase": true,
- "allow_rebase_explicit": true,
- "allow_rebase_update": true,
- "allow_squash_merge": true,
- "archived": true,
- "archived_at": "2019-08-24T14:15:22Z",
- "avatar_url": "string",
- "clone_url": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "default_allow_maintainer_edit": true,
- "default_branch": "string",
- "default_delete_branch_after_merge": true,
- "default_merge_style": "string",
- "description": "string",
- "empty": true,
- "external_tracker": {
- "external_tracker_format": "string",
- "external_tracker_regexp_pattern": "string",
- "external_tracker_style": "string",
- "external_tracker_url": "string"
}, - "external_wiki": {
- "external_wiki_url": "string"
}, - "fork": true,
- "forks_count": 0,
- "full_name": "string",
- "has_actions": true,
- "has_issues": true,
- "has_packages": true,
- "has_projects": true,
- "has_pull_requests": true,
- "has_releases": true,
- "has_wiki": true,
- "html_url": "string",
- "id": 0,
- "ignore_whitespace_conflicts": true,
- "internal": true,
- "internal_tracker": {
- "allow_only_contributors_to_track_time": true,
- "enable_issue_dependencies": true,
- "enable_time_tracker": true
}, - "language": "string",
- "languages_url": "string",
- "link": "string",
- "mirror": true,
- "mirror_interval": "string",
- "mirror_updated": "2019-08-24T14:15:22Z",
- "name": "string",
- "open_issues_count": 0,
- "open_pr_counter": 0,
- "original_url": "string",
- "owner": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "parent": { },
- "permissions": {
- "admin": true,
- "pull": true,
- "push": true
}, - "private": true,
- "release_counter": 0,
- "repo_transfer": {
- "doer": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "recipient": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "teams": [
- {
- "can_create_org_repo": true,
- "description": "string",
- "id": 0,
- "includes_all_repositories": true,
- "name": "string",
- "organization": {
- "avatar_url": "string",
- "description": "string",
- "email": "string",
- "full_name": "string",
- "id": 0,
- "location": "string",
- "name": "string",
- "repo_admin_change_team_access": true,
- "username": "string",
- "visibility": "string",
- "website": "string"
}, - "permission": "none",
- "units": [
- "repo.code",
- "repo.issues",
- "repo.ext_issues",
- "repo.wiki",
- "repo.pulls",
- "repo.releases",
- "repo.projects",
- "repo.ext_wiki"
], - "units_map": {
- "repo.code": "read",
- "repo.ext_issues": "none",
- "repo.ext_wiki": "none",
- "repo.issues": "write",
- "repo.projects": "none",
- "repo.pulls": "owner",
- "repo.releases": "none",
- "repo.wiki": "admin"
}
}
]
}, - "size": 0,
- "ssh_url": "string",
- "stars_count": 0,
- "template": true,
- "updated_at": "2019-08-24T14:15:22Z",
- "url": "string",
- "watchers_count": 0,
- "website": "string"
}, - "repo_id": 0,
- "sha": "string"
}, - "body": "string",
- "closed_at": "2019-08-24T14:15:22Z",
- "comments": 0,
- "created_at": "2019-08-24T14:15:22Z",
- "diff_url": "string",
- "due_date": "2019-08-24T14:15:22Z",
- "head": {
- "label": "string",
- "ref": "string",
- "repo": {
- "allow_merge_commits": true,
- "allow_rebase": true,
- "allow_rebase_explicit": true,
- "allow_rebase_update": true,
- "allow_squash_merge": true,
- "archived": true,
- "archived_at": "2019-08-24T14:15:22Z",
- "avatar_url": "string",
- "clone_url": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "default_allow_maintainer_edit": true,
- "default_branch": "string",
- "default_delete_branch_after_merge": true,
- "default_merge_style": "string",
- "description": "string",
- "empty": true,
- "external_tracker": {
- "external_tracker_format": "string",
- "external_tracker_regexp_pattern": "string",
- "external_tracker_style": "string",
- "external_tracker_url": "string"
}, - "external_wiki": {
- "external_wiki_url": "string"
}, - "fork": true,
- "forks_count": 0,
- "full_name": "string",
- "has_actions": true,
- "has_issues": true,
- "has_packages": true,
- "has_projects": true,
- "has_pull_requests": true,
- "has_releases": true,
- "has_wiki": true,
- "html_url": "string",
- "id": 0,
- "ignore_whitespace_conflicts": true,
- "internal": true,
- "internal_tracker": {
- "allow_only_contributors_to_track_time": true,
- "enable_issue_dependencies": true,
- "enable_time_tracker": true
}, - "language": "string",
- "languages_url": "string",
- "link": "string",
- "mirror": true,
- "mirror_interval": "string",
- "mirror_updated": "2019-08-24T14:15:22Z",
- "name": "string",
- "open_issues_count": 0,
- "open_pr_counter": 0,
- "original_url": "string",
- "owner": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "parent": { },
- "permissions": {
- "admin": true,
- "pull": true,
- "push": true
}, - "private": true,
- "release_counter": 0,
- "repo_transfer": {
- "doer": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "recipient": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "teams": [
- {
- "can_create_org_repo": true,
- "description": "string",
- "id": 0,
- "includes_all_repositories": true,
- "name": "string",
- "organization": {
- "avatar_url": "string",
- "description": "string",
- "email": "string",
- "full_name": "string",
- "id": 0,
- "location": "string",
- "name": "string",
- "repo_admin_change_team_access": true,
- "username": "string",
- "visibility": "string",
- "website": "string"
}, - "permission": "none",
- "units": [
- "repo.code",
- "repo.issues",
- "repo.ext_issues",
- "repo.wiki",
- "repo.pulls",
- "repo.releases",
- "repo.projects",
- "repo.ext_wiki"
], - "units_map": {
- "repo.code": "read",
- "repo.ext_issues": "none",
- "repo.ext_wiki": "none",
- "repo.issues": "write",
- "repo.projects": "none",
- "repo.pulls": "owner",
- "repo.releases": "none",
- "repo.wiki": "admin"
}
}
]
}, - "size": 0,
- "ssh_url": "string",
- "stars_count": 0,
- "template": true,
- "updated_at": "2019-08-24T14:15:22Z",
- "url": "string",
- "watchers_count": 0,
- "website": "string"
}, - "repo_id": 0,
- "sha": "string"
}, - "html_url": "string",
- "id": 0,
- "is_locked": true,
- "labels": [
- {
- "color": "00aabb",
- "description": "string",
- "exclusive": false,
- "id": 0,
- "is_archived": false,
- "name": "string",
- "url": "string"
}
], - "merge_base": "string",
- "merge_commit_sha": "string",
- "mergeable": true,
- "merged": true,
- "merged_at": "2019-08-24T14:15:22Z",
- "merged_by": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "milestone": {
- "closed_at": "2019-08-24T14:15:22Z",
- "closed_issues": 0,
- "created_at": "2019-08-24T14:15:22Z",
- "description": "string",
- "due_on": "2019-08-24T14:15:22Z",
- "id": 0,
- "open_issues": 0,
- "state": "string",
- "title": "string",
- "updated_at": "2019-08-24T14:15:22Z"
}, - "number": 0,
- "patch_url": "string",
- "pin_order": 0,
- "requested_reviewers": [
- {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}
], - "state": "string",
- "title": "string",
- "updated_at": "2019-08-24T14:15:22Z",
- "url": "string",
- "user": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}
}
]
Get a pull request
Authorizations:
path Parameters
owner required | string owner of the repo |
repo required | string name of the repo |
index required | integer <int64> index of the pull request to get |
Responses
Response samples
- 200
{- "allow_maintainer_edit": true,
- "assignee": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "assignees": [
- {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}
], - "base": {
- "label": "string",
- "ref": "string",
- "repo": {
- "allow_merge_commits": true,
- "allow_rebase": true,
- "allow_rebase_explicit": true,
- "allow_rebase_update": true,
- "allow_squash_merge": true,
- "archived": true,
- "archived_at": "2019-08-24T14:15:22Z",
- "avatar_url": "string",
- "clone_url": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "default_allow_maintainer_edit": true,
- "default_branch": "string",
- "default_delete_branch_after_merge": true,
- "default_merge_style": "string",
- "description": "string",
- "empty": true,
- "external_tracker": {
- "external_tracker_format": "string",
- "external_tracker_regexp_pattern": "string",
- "external_tracker_style": "string",
- "external_tracker_url": "string"
}, - "external_wiki": {
- "external_wiki_url": "string"
}, - "fork": true,
- "forks_count": 0,
- "full_name": "string",
- "has_actions": true,
- "has_issues": true,
- "has_packages": true,
- "has_projects": true,
- "has_pull_requests": true,
- "has_releases": true,
- "has_wiki": true,
- "html_url": "string",
- "id": 0,
- "ignore_whitespace_conflicts": true,
- "internal": true,
- "internal_tracker": {
- "allow_only_contributors_to_track_time": true,
- "enable_issue_dependencies": true,
- "enable_time_tracker": true
}, - "language": "string",
- "languages_url": "string",
- "link": "string",
- "mirror": true,
- "mirror_interval": "string",
- "mirror_updated": "2019-08-24T14:15:22Z",
- "name": "string",
- "open_issues_count": 0,
- "open_pr_counter": 0,
- "original_url": "string",
- "owner": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "parent": { },
- "permissions": {
- "admin": true,
- "pull": true,
- "push": true
}, - "private": true,
- "release_counter": 0,
- "repo_transfer": {
- "doer": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "recipient": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "teams": [
- {
- "can_create_org_repo": true,
- "description": "string",
- "id": 0,
- "includes_all_repositories": true,
- "name": "string",
- "organization": {
- "avatar_url": "string",
- "description": "string",
- "email": "string",
- "full_name": "string",
- "id": 0,
- "location": "string",
- "name": "string",
- "repo_admin_change_team_access": true,
- "username": "string",
- "visibility": "string",
- "website": "string"
}, - "permission": "none",
- "units": [
- "repo.code",
- "repo.issues",
- "repo.ext_issues",
- "repo.wiki",
- "repo.pulls",
- "repo.releases",
- "repo.projects",
- "repo.ext_wiki"
], - "units_map": {
- "repo.code": "read",
- "repo.ext_issues": "none",
- "repo.ext_wiki": "none",
- "repo.issues": "write",
- "repo.projects": "none",
- "repo.pulls": "owner",
- "repo.releases": "none",
- "repo.wiki": "admin"
}
}
]
}, - "size": 0,
- "ssh_url": "string",
- "stars_count": 0,
- "template": true,
- "updated_at": "2019-08-24T14:15:22Z",
- "url": "string",
- "watchers_count": 0,
- "website": "string"
}, - "repo_id": 0,
- "sha": "string"
}, - "body": "string",
- "closed_at": "2019-08-24T14:15:22Z",
- "comments": 0,
- "created_at": "2019-08-24T14:15:22Z",
- "diff_url": "string",
- "due_date": "2019-08-24T14:15:22Z",
- "head": {
- "label": "string",
- "ref": "string",
- "repo": {
- "allow_merge_commits": true,
- "allow_rebase": true,
- "allow_rebase_explicit": true,
- "allow_rebase_update": true,
- "allow_squash_merge": true,
- "archived": true,
- "archived_at": "2019-08-24T14:15:22Z",
- "avatar_url": "string",
- "clone_url": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "default_allow_maintainer_edit": true,
- "default_branch": "string",
- "default_delete_branch_after_merge": true,
- "default_merge_style": "string",
- "description": "string",
- "empty": true,
- "external_tracker": {
- "external_tracker_format": "string",
- "external_tracker_regexp_pattern": "string",
- "external_tracker_style": "string",
- "external_tracker_url": "string"
}, - "external_wiki": {
- "external_wiki_url": "string"
}, - "fork": true,
- "forks_count": 0,
- "full_name": "string",
- "has_actions": true,
- "has_issues": true,
- "has_packages": true,
- "has_projects": true,
- "has_pull_requests": true,
- "has_releases": true,
- "has_wiki": true,
- "html_url": "string",
- "id": 0,
- "ignore_whitespace_conflicts": true,
- "internal": true,
- "internal_tracker": {
- "allow_only_contributors_to_track_time": true,
- "enable_issue_dependencies": true,
- "enable_time_tracker": true
}, - "language": "string",
- "languages_url": "string",
- "link": "string",
- "mirror": true,
- "mirror_interval": "string",
- "mirror_updated": "2019-08-24T14:15:22Z",
- "name": "string",
- "open_issues_count": 0,
- "open_pr_counter": 0,
- "original_url": "string",
- "owner": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "parent": { },
- "permissions": {
- "admin": true,
- "pull": true,
- "push": true
}, - "private": true,
- "release_counter": 0,
- "repo_transfer": {
- "doer": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "recipient": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "teams": [
- {
- "can_create_org_repo": true,
- "description": "string",
- "id": 0,
- "includes_all_repositories": true,
- "name": "string",
- "organization": {
- "avatar_url": "string",
- "description": "string",
- "email": "string",
- "full_name": "string",
- "id": 0,
- "location": "string",
- "name": "string",
- "repo_admin_change_team_access": true,
- "username": "string",
- "visibility": "string",
- "website": "string"
}, - "permission": "none",
- "units": [
- "repo.code",
- "repo.issues",
- "repo.ext_issues",
- "repo.wiki",
- "repo.pulls",
- "repo.releases",
- "repo.projects",
- "repo.ext_wiki"
], - "units_map": {
- "repo.code": "read",
- "repo.ext_issues": "none",
- "repo.ext_wiki": "none",
- "repo.issues": "write",
- "repo.projects": "none",
- "repo.pulls": "owner",
- "repo.releases": "none",
- "repo.wiki": "admin"
}
}
]
}, - "size": 0,
- "ssh_url": "string",
- "stars_count": 0,
- "template": true,
- "updated_at": "2019-08-24T14:15:22Z",
- "url": "string",
- "watchers_count": 0,
- "website": "string"
}, - "repo_id": 0,
- "sha": "string"
}, - "html_url": "string",
- "id": 0,
- "is_locked": true,
- "labels": [
- {
- "color": "00aabb",
- "description": "string",
- "exclusive": false,
- "id": 0,
- "is_archived": false,
- "name": "string",
- "url": "string"
}
], - "merge_base": "string",
- "merge_commit_sha": "string",
- "mergeable": true,
- "merged": true,
- "merged_at": "2019-08-24T14:15:22Z",
- "merged_by": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "milestone": {
- "closed_at": "2019-08-24T14:15:22Z",
- "closed_issues": 0,
- "created_at": "2019-08-24T14:15:22Z",
- "description": "string",
- "due_on": "2019-08-24T14:15:22Z",
- "id": 0,
- "open_issues": 0,
- "state": "string",
- "title": "string",
- "updated_at": "2019-08-24T14:15:22Z"
}, - "number": 0,
- "patch_url": "string",
- "pin_order": 0,
- "requested_reviewers": [
- {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}
], - "state": "string",
- "title": "string",
- "updated_at": "2019-08-24T14:15:22Z",
- "url": "string",
- "user": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}
}
Update a pull request. If using deadline only the date will be taken into account, and time of day ignored.
Authorizations:
path Parameters
owner required | string owner of the repo |
repo required | string name of the repo |
index required | integer <int64> index of the pull request to edit |
Request Body schema: application/json
allow_maintainer_edit | boolean |
assignee | string |
assignees | Array of strings |
base | string |
body | string |
due_date | string <date-time> |
labels | Array of integers <int64> [ items <int64 > ] |
milestone | integer <int64> |
state | string |
title | string |
unset_due_date | boolean |
Responses
Request samples
- Payload
{- "allow_maintainer_edit": true,
- "assignee": "string",
- "assignees": [
- "string"
], - "base": "string",
- "body": "string",
- "due_date": "2019-08-24T14:15:22Z",
- "labels": [
- 0
], - "milestone": 0,
- "state": "string",
- "title": "string",
- "unset_due_date": true
}
Response samples
- 201
{- "allow_maintainer_edit": true,
- "assignee": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "assignees": [
- {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}
], - "base": {
- "label": "string",
- "ref": "string",
- "repo": {
- "allow_merge_commits": true,
- "allow_rebase": true,
- "allow_rebase_explicit": true,
- "allow_rebase_update": true,
- "allow_squash_merge": true,
- "archived": true,
- "archived_at": "2019-08-24T14:15:22Z",
- "avatar_url": "string",
- "clone_url": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "default_allow_maintainer_edit": true,
- "default_branch": "string",
- "default_delete_branch_after_merge": true,
- "default_merge_style": "string",
- "description": "string",
- "empty": true,
- "external_tracker": {
- "external_tracker_format": "string",
- "external_tracker_regexp_pattern": "string",
- "external_tracker_style": "string",
- "external_tracker_url": "string"
}, - "external_wiki": {
- "external_wiki_url": "string"
}, - "fork": true,
- "forks_count": 0,
- "full_name": "string",
- "has_actions": true,
- "has_issues": true,
- "has_packages": true,
- "has_projects": true,
- "has_pull_requests": true,
- "has_releases": true,
- "has_wiki": true,
- "html_url": "string",
- "id": 0,
- "ignore_whitespace_conflicts": true,
- "internal": true,
- "internal_tracker": {
- "allow_only_contributors_to_track_time": true,
- "enable_issue_dependencies": true,
- "enable_time_tracker": true
}, - "language": "string",
- "languages_url": "string",
- "link": "string",
- "mirror": true,
- "mirror_interval": "string",
- "mirror_updated": "2019-08-24T14:15:22Z",
- "name": "string",
- "open_issues_count": 0,
- "open_pr_counter": 0,
- "original_url": "string",
- "owner": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "parent": { },
- "permissions": {
- "admin": true,
- "pull": true,
- "push": true
}, - "private": true,
- "release_counter": 0,
- "repo_transfer": {
- "doer": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "recipient": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "teams": [
- {
- "can_create_org_repo": true,
- "description": "string",
- "id": 0,
- "includes_all_repositories": true,
- "name": "string",
- "organization": {
- "avatar_url": "string",
- "description": "string",
- "email": "string",
- "full_name": "string",
- "id": 0,
- "location": "string",
- "name": "string",
- "repo_admin_change_team_access": true,
- "username": "string",
- "visibility": "string",
- "website": "string"
}, - "permission": "none",
- "units": [
- "repo.code",
- "repo.issues",
- "repo.ext_issues",
- "repo.wiki",
- "repo.pulls",
- "repo.releases",
- "repo.projects",
- "repo.ext_wiki"
], - "units_map": {
- "repo.code": "read",
- "repo.ext_issues": "none",
- "repo.ext_wiki": "none",
- "repo.issues": "write",
- "repo.projects": "none",
- "repo.pulls": "owner",
- "repo.releases": "none",
- "repo.wiki": "admin"
}
}
]
}, - "size": 0,
- "ssh_url": "string",
- "stars_count": 0,
- "template": true,
- "updated_at": "2019-08-24T14:15:22Z",
- "url": "string",
- "watchers_count": 0,
- "website": "string"
}, - "repo_id": 0,
- "sha": "string"
}, - "body": "string",
- "closed_at": "2019-08-24T14:15:22Z",
- "comments": 0,
- "created_at": "2019-08-24T14:15:22Z",
- "diff_url": "string",
- "due_date": "2019-08-24T14:15:22Z",
- "head": {
- "label": "string",
- "ref": "string",
- "repo": {
- "allow_merge_commits": true,
- "allow_rebase": true,
- "allow_rebase_explicit": true,
- "allow_rebase_update": true,
- "allow_squash_merge": true,
- "archived": true,
- "archived_at": "2019-08-24T14:15:22Z",
- "avatar_url": "string",
- "clone_url": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "default_allow_maintainer_edit": true,
- "default_branch": "string",
- "default_delete_branch_after_merge": true,
- "default_merge_style": "string",
- "description": "string",
- "empty": true,
- "external_tracker": {
- "external_tracker_format": "string",
- "external_tracker_regexp_pattern": "string",
- "external_tracker_style": "string",
- "external_tracker_url": "string"
}, - "external_wiki": {
- "external_wiki_url": "string"
}, - "fork": true,
- "forks_count": 0,
- "full_name": "string",
- "has_actions": true,
- "has_issues": true,
- "has_packages": true,
- "has_projects": true,
- "has_pull_requests": true,
- "has_releases": true,
- "has_wiki": true,
- "html_url": "string",
- "id": 0,
- "ignore_whitespace_conflicts": true,
- "internal": true,
- "internal_tracker": {
- "allow_only_contributors_to_track_time": true,
- "enable_issue_dependencies": true,
- "enable_time_tracker": true
}, - "language": "string",
- "languages_url": "string",
- "link": "string",
- "mirror": true,
- "mirror_interval": "string",
- "mirror_updated": "2019-08-24T14:15:22Z",
- "name": "string",
- "open_issues_count": 0,
- "open_pr_counter": 0,
- "original_url": "string",
- "owner": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "parent": { },
- "permissions": {
- "admin": true,
- "pull": true,
- "push": true
}, - "private": true,
- "release_counter": 0,
- "repo_transfer": {
- "doer": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "recipient": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "teams": [
- {
- "can_create_org_repo": true,
- "description": "string",
- "id": 0,
- "includes_all_repositories": true,
- "name": "string",
- "organization": {
- "avatar_url": "string",
- "description": "string",
- "email": "string",
- "full_name": "string",
- "id": 0,
- "location": "string",
- "name": "string",
- "repo_admin_change_team_access": true,
- "username": "string",
- "visibility": "string",
- "website": "string"
}, - "permission": "none",
- "units": [
- "repo.code",
- "repo.issues",
- "repo.ext_issues",
- "repo.wiki",
- "repo.pulls",
- "repo.releases",
- "repo.projects",
- "repo.ext_wiki"
], - "units_map": {
- "repo.code": "read",
- "repo.ext_issues": "none",
- "repo.ext_wiki": "none",
- "repo.issues": "write",
- "repo.projects": "none",
- "repo.pulls": "owner",
- "repo.releases": "none",
- "repo.wiki": "admin"
}
}
]
}, - "size": 0,
- "ssh_url": "string",
- "stars_count": 0,
- "template": true,
- "updated_at": "2019-08-24T14:15:22Z",
- "url": "string",
- "watchers_count": 0,
- "website": "string"
}, - "repo_id": 0,
- "sha": "string"
}, - "html_url": "string",
- "id": 0,
- "is_locked": true,
- "labels": [
- {
- "color": "00aabb",
- "description": "string",
- "exclusive": false,
- "id": 0,
- "is_archived": false,
- "name": "string",
- "url": "string"
}
], - "merge_base": "string",
- "merge_commit_sha": "string",
- "mergeable": true,
- "merged": true,
- "merged_at": "2019-08-24T14:15:22Z",
- "merged_by": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "milestone": {
- "closed_at": "2019-08-24T14:15:22Z",
- "closed_issues": 0,
- "created_at": "2019-08-24T14:15:22Z",
- "description": "string",
- "due_on": "2019-08-24T14:15:22Z",
- "id": 0,
- "open_issues": 0,
- "state": "string",
- "title": "string",
- "updated_at": "2019-08-24T14:15:22Z"
}, - "number": 0,
- "patch_url": "string",
- "pin_order": 0,
- "requested_reviewers": [
- {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}
], - "state": "string",
- "title": "string",
- "updated_at": "2019-08-24T14:15:22Z",
- "url": "string",
- "user": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}
}
Get a pull request diff or patch
Authorizations:
path Parameters
owner required | string owner of the repo |
repo required | string name of the repo |
index required | integer <int64> index of the pull request to get |
diffType required | string Enum: "diff" "patch" whether the output is diff or patch |
query Parameters
binary | boolean whether to include binary file changes. if true, the diff is applicable with |
Responses
Response samples
- 200
"string"
Get commits for a pull request
Authorizations:
path Parameters
owner required | string owner of the repo |
repo required | string name of the repo |
index required | integer <int64> index of the pull request to get |
query Parameters
page | integer page number of results to return (1-based) |
limit | integer page size of results |
verification | boolean include verification for every commit (disable for speedup, default 'true') |
files | boolean include a list of affected files for every commit (disable for speedup, default 'true') |
Responses
Response samples
- 200
[- {
- "author": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "commit": {
- "author": {
- "date": "string",
- "email": "user@example.com",
- "name": "string"
}, - "committer": {
- "date": "string",
- "email": "user@example.com",
- "name": "string"
}, - "message": "string",
- "tree": {
- "created": "2019-08-24T14:15:22Z",
- "sha": "string",
- "url": "string"
}, - "url": "string",
- "verification": {
- "payload": "string",
- "reason": "string",
- "signature": "string",
- "signer": {
- "email": "user@example.com",
- "name": "string",
- "username": "string"
}, - "verified": true
}
}, - "committer": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "created": "2019-08-24T14:15:22Z",
- "files": [
- {
- "filename": "string",
- "status": "string"
}
], - "html_url": "string",
- "parents": [
- {
- "created": "2019-08-24T14:15:22Z",
- "sha": "string",
- "url": "string"
}
], - "sha": "string",
- "stats": {
- "additions": 0,
- "deletions": 0,
- "total": 0
}, - "url": "string"
}
]
Get changed files for a pull request
Authorizations:
path Parameters
owner required | string owner of the repo |
repo required | string name of the repo |
index required | integer <int64> index of the pull request to get |
query Parameters
skip-to | string skip to given file |
whitespace | string Enum: "ignore-all" "ignore-change" "ignore-eol" "show-all" whitespace behavior |
page | integer page number of results to return (1-based) |
limit | integer page size of results |
Responses
Response samples
- 200
[- {
- "additions": 0,
- "changes": 0,
- "contents_url": "string",
- "deletions": 0,
- "filename": "string",
- "html_url": "string",
- "previous_filename": "string",
- "raw_url": "string",
- "status": "string"
}
]
Merge a pull request
Authorizations:
path Parameters
owner required | string owner of the repo |
repo required | string name of the repo |
index required | integer <int64> index of the pull request to merge |
Request Body schema:
Do required | string Enum: "merge" "rebase" "rebase-merge" "squash" "manually-merged" |
MergeCommitID | string |
MergeMessageField | string |
MergeTitleField | string |
delete_branch_after_merge | boolean |
force_merge | boolean |
head_commit_id | string |
merge_when_checks_succeed | boolean |
Responses
Request samples
- Payload
{- "Do": "merge",
- "MergeCommitID": "string",
- "MergeMessageField": "string",
- "MergeTitleField": "string",
- "delete_branch_after_merge": true,
- "force_merge": true,
- "head_commit_id": "string",
- "merge_when_checks_succeed": true
}
Cancel the scheduled auto merge for the given pull request
Authorizations:
path Parameters
owner required | string owner of the repo |
repo required | string name of the repo |
index required | integer <int64> index of the pull request to merge |
Responses
create review requests for a pull request
Authorizations:
path Parameters
owner required | string owner of the repo |
repo required | string name of the repo |
index required | integer <int64> index of the pull request |
Request Body schema: required
reviewers | Array of strings |
team_reviewers | Array of strings |
Responses
Request samples
- Payload
{- "reviewers": [
- "string"
], - "team_reviewers": [
- "string"
]
}
Response samples
- 201
[- {
- "body": "string",
- "comments_count": 0,
- "commit_id": "string",
- "dismissed": true,
- "html_url": "string",
- "id": 0,
- "official": true,
- "pull_request_url": "string",
- "stale": true,
- "state": "string",
- "submitted_at": "2019-08-24T14:15:22Z",
- "team": {
- "can_create_org_repo": true,
- "description": "string",
- "id": 0,
- "includes_all_repositories": true,
- "name": "string",
- "organization": {
- "avatar_url": "string",
- "description": "string",
- "email": "string",
- "full_name": "string",
- "id": 0,
- "location": "string",
- "name": "string",
- "repo_admin_change_team_access": true,
- "username": "string",
- "visibility": "string",
- "website": "string"
}, - "permission": "none",
- "units": [
- "repo.code",
- "repo.issues",
- "repo.ext_issues",
- "repo.wiki",
- "repo.pulls",
- "repo.releases",
- "repo.projects",
- "repo.ext_wiki"
], - "units_map": {
- "repo.code": "read",
- "repo.ext_issues": "none",
- "repo.ext_wiki": "none",
- "repo.issues": "write",
- "repo.projects": "none",
- "repo.pulls": "owner",
- "repo.releases": "none",
- "repo.wiki": "admin"
}
}, - "updated_at": "2019-08-24T14:15:22Z",
- "user": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}
}
]
cancel review requests for a pull request
Authorizations:
path Parameters
owner required | string owner of the repo |
repo required | string name of the repo |
index required | integer <int64> index of the pull request |
Request Body schema: required
reviewers | Array of strings |
team_reviewers | Array of strings |
Responses
Request samples
- Payload
{- "reviewers": [
- "string"
], - "team_reviewers": [
- "string"
]
}
List all reviews for a pull request
Authorizations:
path Parameters
owner required | string owner of the repo |
repo required | string name of the repo |
index required | integer <int64> index of the pull request |
query Parameters
page | integer page number of results to return (1-based) |
limit | integer page size of results |
Responses
Response samples
- 200
[- {
- "body": "string",
- "comments_count": 0,
- "commit_id": "string",
- "dismissed": true,
- "html_url": "string",
- "id": 0,
- "official": true,
- "pull_request_url": "string",
- "stale": true,
- "state": "string",
- "submitted_at": "2019-08-24T14:15:22Z",
- "team": {
- "can_create_org_repo": true,
- "description": "string",
- "id": 0,
- "includes_all_repositories": true,
- "name": "string",
- "organization": {
- "avatar_url": "string",
- "description": "string",
- "email": "string",
- "full_name": "string",
- "id": 0,
- "location": "string",
- "name": "string",
- "repo_admin_change_team_access": true,
- "username": "string",
- "visibility": "string",
- "website": "string"
}, - "permission": "none",
- "units": [
- "repo.code",
- "repo.issues",
- "repo.ext_issues",
- "repo.wiki",
- "repo.pulls",
- "repo.releases",
- "repo.projects",
- "repo.ext_wiki"
], - "units_map": {
- "repo.code": "read",
- "repo.ext_issues": "none",
- "repo.ext_wiki": "none",
- "repo.issues": "write",
- "repo.projects": "none",
- "repo.pulls": "owner",
- "repo.releases": "none",
- "repo.wiki": "admin"
}
}, - "updated_at": "2019-08-24T14:15:22Z",
- "user": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}
}
]
Create a review to an pull request
Authorizations:
path Parameters
owner required | string owner of the repo |
repo required | string name of the repo |
index required | integer <int64> index of the pull request |
Request Body schema: required
body | string |
Array of objects (CreatePullReviewComment) | |
commit_id | string |
event | string (ReviewStateType) ReviewStateType review state type |
Responses
Request samples
- Payload
{- "body": "string",
- "comments": [
- {
- "body": "string",
- "new_position": 0,
- "old_position": 0,
- "path": "string"
}
], - "commit_id": "string",
- "event": "string"
}
Response samples
- 200
{- "body": "string",
- "comments_count": 0,
- "commit_id": "string",
- "dismissed": true,
- "html_url": "string",
- "id": 0,
- "official": true,
- "pull_request_url": "string",
- "stale": true,
- "state": "string",
- "submitted_at": "2019-08-24T14:15:22Z",
- "team": {
- "can_create_org_repo": true,
- "description": "string",
- "id": 0,
- "includes_all_repositories": true,
- "name": "string",
- "organization": {
- "avatar_url": "string",
- "description": "string",
- "email": "string",
- "full_name": "string",
- "id": 0,
- "location": "string",
- "name": "string",
- "repo_admin_change_team_access": true,
- "username": "string",
- "visibility": "string",
- "website": "string"
}, - "permission": "none",
- "units": [
- "repo.code",
- "repo.issues",
- "repo.ext_issues",
- "repo.wiki",
- "repo.pulls",
- "repo.releases",
- "repo.projects",
- "repo.ext_wiki"
], - "units_map": {
- "repo.code": "read",
- "repo.ext_issues": "none",
- "repo.ext_wiki": "none",
- "repo.issues": "write",
- "repo.projects": "none",
- "repo.pulls": "owner",
- "repo.releases": "none",
- "repo.wiki": "admin"
}
}, - "updated_at": "2019-08-24T14:15:22Z",
- "user": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}
}
Get a specific review for a pull request
Authorizations:
path Parameters
owner required | string owner of the repo |
repo required | string name of the repo |
index required | integer <int64> index of the pull request |
id required | integer <int64> id of the review |
Responses
Response samples
- 200
{- "body": "string",
- "comments_count": 0,
- "commit_id": "string",
- "dismissed": true,
- "html_url": "string",
- "id": 0,
- "official": true,
- "pull_request_url": "string",
- "stale": true,
- "state": "string",
- "submitted_at": "2019-08-24T14:15:22Z",
- "team": {
- "can_create_org_repo": true,
- "description": "string",
- "id": 0,
- "includes_all_repositories": true,
- "name": "string",
- "organization": {
- "avatar_url": "string",
- "description": "string",
- "email": "string",
- "full_name": "string",
- "id": 0,
- "location": "string",
- "name": "string",
- "repo_admin_change_team_access": true,
- "username": "string",
- "visibility": "string",
- "website": "string"
}, - "permission": "none",
- "units": [
- "repo.code",
- "repo.issues",
- "repo.ext_issues",
- "repo.wiki",
- "repo.pulls",
- "repo.releases",
- "repo.projects",
- "repo.ext_wiki"
], - "units_map": {
- "repo.code": "read",
- "repo.ext_issues": "none",
- "repo.ext_wiki": "none",
- "repo.issues": "write",
- "repo.projects": "none",
- "repo.pulls": "owner",
- "repo.releases": "none",
- "repo.wiki": "admin"
}
}, - "updated_at": "2019-08-24T14:15:22Z",
- "user": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}
}
Submit a pending review to an pull request
Authorizations:
path Parameters
owner required | string owner of the repo |
repo required | string name of the repo |
index required | integer <int64> index of the pull request |
id required | integer <int64> id of the review |
Request Body schema: required
body | string |
event | string (ReviewStateType) ReviewStateType review state type |
Responses
Request samples
- Payload
{- "body": "string",
- "event": "string"
}
Response samples
- 200
{- "body": "string",
- "comments_count": 0,
- "commit_id": "string",
- "dismissed": true,
- "html_url": "string",
- "id": 0,
- "official": true,
- "pull_request_url": "string",
- "stale": true,
- "state": "string",
- "submitted_at": "2019-08-24T14:15:22Z",
- "team": {
- "can_create_org_repo": true,
- "description": "string",
- "id": 0,
- "includes_all_repositories": true,
- "name": "string",
- "organization": {
- "avatar_url": "string",
- "description": "string",
- "email": "string",
- "full_name": "string",
- "id": 0,
- "location": "string",
- "name": "string",
- "repo_admin_change_team_access": true,
- "username": "string",
- "visibility": "string",
- "website": "string"
}, - "permission": "none",
- "units": [
- "repo.code",
- "repo.issues",
- "repo.ext_issues",
- "repo.wiki",
- "repo.pulls",
- "repo.releases",
- "repo.projects",
- "repo.ext_wiki"
], - "units_map": {
- "repo.code": "read",
- "repo.ext_issues": "none",
- "repo.ext_wiki": "none",
- "repo.issues": "write",
- "repo.projects": "none",
- "repo.pulls": "owner",
- "repo.releases": "none",
- "repo.wiki": "admin"
}
}, - "updated_at": "2019-08-24T14:15:22Z",
- "user": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}
}
Delete a specific review from a pull request
Authorizations:
path Parameters
owner required | string owner of the repo |
repo required | string name of the repo |
index required | integer <int64> index of the pull request |
id required | integer <int64> id of the review |
Responses
Get a specific review for a pull request
Authorizations:
path Parameters
owner required | string owner of the repo |
repo required | string name of the repo |
index required | integer <int64> index of the pull request |
id required | integer <int64> id of the review |
Responses
Response samples
- 200
[- {
- "body": "string",
- "commit_id": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "diff_hunk": "string",
- "html_url": "string",
- "id": 0,
- "original_commit_id": "string",
- "original_position": 0,
- "path": "string",
- "position": 0,
- "pull_request_review_id": 0,
- "pull_request_url": "string",
- "resolver": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "updated_at": "2019-08-24T14:15:22Z",
- "user": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}
}
]
Dismiss a review for a pull request
Authorizations:
path Parameters
owner required | string owner of the repo |
repo required | string name of the repo |
index required | integer <int64> index of the pull request |
id required | integer <int64> id of the review |
Request Body schema: required
message | string |
priors | boolean |
Responses
Request samples
- Payload
{- "message": "string",
- "priors": true
}
Response samples
- 200
{- "body": "string",
- "comments_count": 0,
- "commit_id": "string",
- "dismissed": true,
- "html_url": "string",
- "id": 0,
- "official": true,
- "pull_request_url": "string",
- "stale": true,
- "state": "string",
- "submitted_at": "2019-08-24T14:15:22Z",
- "team": {
- "can_create_org_repo": true,
- "description": "string",
- "id": 0,
- "includes_all_repositories": true,
- "name": "string",
- "organization": {
- "avatar_url": "string",
- "description": "string",
- "email": "string",
- "full_name": "string",
- "id": 0,
- "location": "string",
- "name": "string",
- "repo_admin_change_team_access": true,
- "username": "string",
- "visibility": "string",
- "website": "string"
}, - "permission": "none",
- "units": [
- "repo.code",
- "repo.issues",
- "repo.ext_issues",
- "repo.wiki",
- "repo.pulls",
- "repo.releases",
- "repo.projects",
- "repo.ext_wiki"
], - "units_map": {
- "repo.code": "read",
- "repo.ext_issues": "none",
- "repo.ext_wiki": "none",
- "repo.issues": "write",
- "repo.projects": "none",
- "repo.pulls": "owner",
- "repo.releases": "none",
- "repo.wiki": "admin"
}
}, - "updated_at": "2019-08-24T14:15:22Z",
- "user": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}
}
Cancel to dismiss a review for a pull request
Authorizations:
path Parameters
owner required | string owner of the repo |
repo required | string name of the repo |
index required | integer <int64> index of the pull request |
id required | integer <int64> id of the review |
Responses
Response samples
- 200
{- "body": "string",
- "comments_count": 0,
- "commit_id": "string",
- "dismissed": true,
- "html_url": "string",
- "id": 0,
- "official": true,
- "pull_request_url": "string",
- "stale": true,
- "state": "string",
- "submitted_at": "2019-08-24T14:15:22Z",
- "team": {
- "can_create_org_repo": true,
- "description": "string",
- "id": 0,
- "includes_all_repositories": true,
- "name": "string",
- "organization": {
- "avatar_url": "string",
- "description": "string",
- "email": "string",
- "full_name": "string",
- "id": 0,
- "location": "string",
- "name": "string",
- "repo_admin_change_team_access": true,
- "username": "string",
- "visibility": "string",
- "website": "string"
}, - "permission": "none",
- "units": [
- "repo.code",
- "repo.issues",
- "repo.ext_issues",
- "repo.wiki",
- "repo.pulls",
- "repo.releases",
- "repo.projects",
- "repo.ext_wiki"
], - "units_map": {
- "repo.code": "read",
- "repo.ext_issues": "none",
- "repo.ext_wiki": "none",
- "repo.issues": "write",
- "repo.projects": "none",
- "repo.pulls": "owner",
- "repo.releases": "none",
- "repo.wiki": "admin"
}
}, - "updated_at": "2019-08-24T14:15:22Z",
- "user": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}
}
Merge PR's baseBranch into headBranch
Authorizations:
path Parameters
owner required | string owner of the repo |
repo required | string name of the repo |
index required | integer <int64> index of the pull request to get |
query Parameters
style | string Enum: "merge" "rebase" how to update pull request |
Responses
Get all push mirrors of the repository
Authorizations:
path Parameters
owner required | string owner of the repo |
repo required | string name of the repo |
query Parameters
page | integer page number of results to return (1-based) |
limit | integer page size of results |
Responses
Response samples
- 200
[- {
- "created": "string",
- "interval": "string",
- "last_error": "string",
- "last_update": "string",
- "remote_address": "string",
- "remote_name": "string",
- "repo_name": "string",
- "sync_on_commit": true
}
]
add a push mirror to the repository
Authorizations:
path Parameters
owner required | string owner of the repo |
repo required | string name of the repo |
Request Body schema: application/json
interval | string |
remote_address | string |
remote_password | string |
remote_username | string |
sync_on_commit | boolean |
Responses
Request samples
- Payload
{- "interval": "string",
- "remote_address": "string",
- "remote_password": "string",
- "remote_username": "string",
- "sync_on_commit": true
}
Response samples
- 200
{- "created": "string",
- "interval": "string",
- "last_error": "string",
- "last_update": "string",
- "remote_address": "string",
- "remote_name": "string",
- "repo_name": "string",
- "sync_on_commit": true
}
Get push mirror of the repository by remoteName
Authorizations:
path Parameters
owner required | string owner of the repo |
repo required | string name of the repo |
name required | string remote name of push mirror |
Responses
Response samples
- 200
{- "created": "string",
- "interval": "string",
- "last_error": "string",
- "last_update": "string",
- "remote_address": "string",
- "remote_name": "string",
- "repo_name": "string",
- "sync_on_commit": true
}
Get a file from a repository
Authorizations:
path Parameters
owner required | string owner of the repo |
repo required | string name of the repo |
filepath required | string filepath of the file to get |
query Parameters
ref | string The name of the commit/branch/tag. Default the repository’s default branch (usually master) |
Responses
List a repo's releases
Authorizations:
path Parameters
owner required | string owner of the repo |
repo required | string name of the repo |
query Parameters
draft | boolean filter (exclude / include) drafts, if you dont have repo write access none will show |
pre-release | boolean filter (exclude / include) pre-releases |
per_page | integer page size of results, deprecated - use limit |
page | integer page number of results to return (1-based) |
limit | integer page size of results |
Responses
Response samples
- 200
[- {
- "assets": [
- {
- "browser_download_url": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "download_count": 0,
- "id": 0,
- "name": "string",
- "size": 0,
- "uuid": "string"
}
], - "author": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "body": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "draft": true,
- "html_url": "string",
- "id": 0,
- "name": "string",
- "prerelease": true,
- "published_at": "2019-08-24T14:15:22Z",
- "tag_name": "string",
- "tarball_url": "string",
- "target_commitish": "string",
- "upload_url": "string",
- "url": "string",
- "zipball_url": "string"
}
]
Create a release
Authorizations:
path Parameters
owner required | string owner of the repo |
repo required | string name of the repo |
Request Body schema: application/json
body | string |
draft | boolean |
name | string |
prerelease | boolean |
tag_name required | string |
target_commitish | string |
Responses
Request samples
- Payload
{- "body": "string",
- "draft": true,
- "name": "string",
- "prerelease": true,
- "tag_name": "string",
- "target_commitish": "string"
}
Response samples
- 201
{- "assets": [
- {
- "browser_download_url": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "download_count": 0,
- "id": 0,
- "name": "string",
- "size": 0,
- "uuid": "string"
}
], - "author": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "body": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "draft": true,
- "html_url": "string",
- "id": 0,
- "name": "string",
- "prerelease": true,
- "published_at": "2019-08-24T14:15:22Z",
- "tag_name": "string",
- "tarball_url": "string",
- "target_commitish": "string",
- "upload_url": "string",
- "url": "string",
- "zipball_url": "string"
}
Gets the most recent non-prerelease, non-draft release of a repository, sorted by created_at
Authorizations:
path Parameters
owner required | string owner of the repo |
repo required | string name of the repo |
Responses
Response samples
- 200
{- "assets": [
- {
- "browser_download_url": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "download_count": 0,
- "id": 0,
- "name": "string",
- "size": 0,
- "uuid": "string"
}
], - "author": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "body": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "draft": true,
- "html_url": "string",
- "id": 0,
- "name": "string",
- "prerelease": true,
- "published_at": "2019-08-24T14:15:22Z",
- "tag_name": "string",
- "tarball_url": "string",
- "target_commitish": "string",
- "upload_url": "string",
- "url": "string",
- "zipball_url": "string"
}
Get a release by tag name
Authorizations:
path Parameters
owner required | string owner of the repo |
repo required | string name of the repo |
tag required | string tag name of the release to get |
Responses
Response samples
- 200
{- "assets": [
- {
- "browser_download_url": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "download_count": 0,
- "id": 0,
- "name": "string",
- "size": 0,
- "uuid": "string"
}
], - "author": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "body": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "draft": true,
- "html_url": "string",
- "id": 0,
- "name": "string",
- "prerelease": true,
- "published_at": "2019-08-24T14:15:22Z",
- "tag_name": "string",
- "tarball_url": "string",
- "target_commitish": "string",
- "upload_url": "string",
- "url": "string",
- "zipball_url": "string"
}
Get a release
Authorizations:
path Parameters
owner required | string owner of the repo |
repo required | string name of the repo |
id required | integer <int64> id of the release to get |
Responses
Response samples
- 200
{- "assets": [
- {
- "browser_download_url": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "download_count": 0,
- "id": 0,
- "name": "string",
- "size": 0,
- "uuid": "string"
}
], - "author": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "body": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "draft": true,
- "html_url": "string",
- "id": 0,
- "name": "string",
- "prerelease": true,
- "published_at": "2019-08-24T14:15:22Z",
- "tag_name": "string",
- "tarball_url": "string",
- "target_commitish": "string",
- "upload_url": "string",
- "url": "string",
- "zipball_url": "string"
}
Update a release
Authorizations:
path Parameters
owner required | string owner of the repo |
repo required | string name of the repo |
id required | integer <int64> id of the release to edit |
Request Body schema: application/json
body | string |
draft | boolean |
name | string |
prerelease | boolean |
tag_name | string |
target_commitish | string |
Responses
Request samples
- Payload
{- "body": "string",
- "draft": true,
- "name": "string",
- "prerelease": true,
- "tag_name": "string",
- "target_commitish": "string"
}
Response samples
- 200
{- "assets": [
- {
- "browser_download_url": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "download_count": 0,
- "id": 0,
- "name": "string",
- "size": 0,
- "uuid": "string"
}
], - "author": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "body": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "draft": true,
- "html_url": "string",
- "id": 0,
- "name": "string",
- "prerelease": true,
- "published_at": "2019-08-24T14:15:22Z",
- "tag_name": "string",
- "tarball_url": "string",
- "target_commitish": "string",
- "upload_url": "string",
- "url": "string",
- "zipball_url": "string"
}
List release's attachments
Authorizations:
path Parameters
owner required | string owner of the repo |
repo required | string name of the repo |
id required | integer <int64> id of the release |
Responses
Response samples
- 200
[- {
- "browser_download_url": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "download_count": 0,
- "id": 0,
- "name": "string",
- "size": 0,
- "uuid": "string"
}
]
Create a release attachment
Authorizations:
path Parameters
owner required | string owner of the repo |
repo required | string name of the repo |
id required | integer <int64> id of the release |
query Parameters
name | string name of the attachment |
Request Body schema: multipart/form-datarequired
attachment required | string <binary> attachment to upload |
Responses
Response samples
- 201
{- "browser_download_url": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "download_count": 0,
- "id": 0,
- "name": "string",
- "size": 0,
- "uuid": "string"
}
Get a release attachment
Authorizations:
path Parameters
owner required | string owner of the repo |
repo required | string name of the repo |
id required | integer <int64> id of the release |
attachment_id required | integer <int64> id of the attachment to get |
Responses
Response samples
- 200
{- "browser_download_url": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "download_count": 0,
- "id": 0,
- "name": "string",
- "size": 0,
- "uuid": "string"
}
Delete a release attachment
Authorizations:
path Parameters
owner required | string owner of the repo |
repo required | string name of the repo |
id required | integer <int64> id of the release |
attachment_id required | integer <int64> id of the attachment to delete |
Responses
Edit a release attachment
Authorizations:
path Parameters
owner required | string owner of the repo |
repo required | string name of the repo |
id required | integer <int64> id of the release |
attachment_id required | integer <int64> id of the attachment to edit |
Request Body schema: application/json
name | string |
Responses
Request samples
- Payload
{- "name": "string"
}
Response samples
- 201
{- "browser_download_url": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "download_count": 0,
- "id": 0,
- "name": "string",
- "size": 0,
- "uuid": "string"
}
Return all users that can be requested to review in this repo
Authorizations:
path Parameters
owner required | string owner of the repo |
repo required | string name of the repo |
Responses
Response samples
- 200
[- {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}
]
List a repo's stargazers
Authorizations:
path Parameters
owner required | string owner of the repo |
repo required | string name of the repo |
query Parameters
page | integer page number of results to return (1-based) |
limit | integer page size of results |
Responses
Response samples
- 200
[- {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}
]
Get a commit's statuses
Authorizations:
path Parameters
owner required | string owner of the repo |
repo required | string name of the repo |
sha required | string sha of the commit |
query Parameters
sort | string Enum: "oldest" "recentupdate" "leastupdate" "leastindex" "highestindex" type of sort |
state | string Enum: "pending" "success" "error" "failure" "warning" type of state |
page | integer page number of results to return (1-based) |
limit | integer page size of results |
Responses
Response samples
- 200
[- {
- "context": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "creator": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "description": "string",
- "id": 0,
- "status": "string",
- "target_url": "string",
- "updated_at": "2019-08-24T14:15:22Z",
- "url": "string"
}
]
Create a commit status
Authorizations:
path Parameters
owner required | string owner of the repo |
repo required | string name of the repo |
sha required | string sha of the commit |
Request Body schema:
context | string |
description | string |
state | string (CommitStatusState) CommitStatusState holds the state of a CommitStatus It can be "pending", "success", "error" and "failure" |
target_url | string |
Responses
Request samples
- Payload
{- "context": "string",
- "description": "string",
- "state": "string",
- "target_url": "string"
}
Response samples
- 201
{- "context": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "creator": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "description": "string",
- "id": 0,
- "status": "string",
- "target_url": "string",
- "updated_at": "2019-08-24T14:15:22Z",
- "url": "string"
}
List a repo's watchers
Authorizations:
path Parameters
owner required | string owner of the repo |
repo required | string name of the repo |
query Parameters
page | integer page number of results to return (1-based) |
limit | integer page size of results |
Responses
Response samples
- 200
[- {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}
]
Check if the current user is watching a repo
Authorizations:
path Parameters
owner required | string owner of the repo |
repo required | string name of the repo |
Responses
Response samples
- 200
{- "created_at": "2019-08-24T14:15:22Z",
- "ignored": true,
- "reason": null,
- "repository_url": "string",
- "subscribed": true,
- "url": "string"
}
Watch a repo
Authorizations:
path Parameters
owner required | string owner of the repo |
repo required | string name of the repo |
Responses
Response samples
- 200
{- "created_at": "2019-08-24T14:15:22Z",
- "ignored": true,
- "reason": null,
- "repository_url": "string",
- "subscribed": true,
- "url": "string"
}
List a repository's tags
Authorizations:
path Parameters
owner required | string owner of the repo |
repo required | string name of the repo |
query Parameters
page | integer page number of results to return (1-based) |
limit | integer page size of results, default maximum page size is 50 |
Responses
Response samples
- 200
[- {
- "commit": {
- "created": "2019-08-24T14:15:22Z",
- "sha": "string",
- "url": "string"
}, - "id": "string",
- "message": "string",
- "name": "string",
- "tarball_url": "string",
- "zipball_url": "string"
}
]
Create a new git tag in a repository
Authorizations:
path Parameters
owner required | string owner of the repo |
repo required | string name of the repo |
Request Body schema:
message | string |
tag_name required | string |
target | string |
Responses
Request samples
- Payload
{- "message": "string",
- "tag_name": "string",
- "target": "string"
}
Response samples
- 200
{- "commit": {
- "created": "2019-08-24T14:15:22Z",
- "sha": "string",
- "url": "string"
}, - "id": "string",
- "message": "string",
- "name": "string",
- "tarball_url": "string",
- "zipball_url": "string"
}
Get the tag of a repository by tag name
Authorizations:
path Parameters
owner required | string owner of the repo |
repo required | string name of the repo |
tag required | string name of tag |
Responses
Response samples
- 200
{- "commit": {
- "created": "2019-08-24T14:15:22Z",
- "sha": "string",
- "url": "string"
}, - "id": "string",
- "message": "string",
- "name": "string",
- "tarball_url": "string",
- "zipball_url": "string"
}
List a repository's teams
Authorizations:
path Parameters
owner required | string owner of the repo |
repo required | string name of the repo |
Responses
Response samples
- 200
[- {
- "can_create_org_repo": true,
- "description": "string",
- "id": 0,
- "includes_all_repositories": true,
- "name": "string",
- "organization": {
- "avatar_url": "string",
- "description": "string",
- "email": "string",
- "full_name": "string",
- "id": 0,
- "location": "string",
- "name": "string",
- "repo_admin_change_team_access": true,
- "username": "string",
- "visibility": "string",
- "website": "string"
}, - "permission": "none",
- "units": [
- "repo.code",
- "repo.issues",
- "repo.ext_issues",
- "repo.wiki",
- "repo.pulls",
- "repo.releases",
- "repo.projects",
- "repo.ext_wiki"
], - "units_map": {
- "repo.code": "read",
- "repo.ext_issues": "none",
- "repo.ext_wiki": "none",
- "repo.issues": "write",
- "repo.projects": "none",
- "repo.pulls": "owner",
- "repo.releases": "none",
- "repo.wiki": "admin"
}
}
]
Check if a team is assigned to a repository
Authorizations:
path Parameters
owner required | string owner of the repo |
repo required | string name of the repo |
team required | string team name |
Responses
Response samples
- 200
{- "can_create_org_repo": true,
- "description": "string",
- "id": 0,
- "includes_all_repositories": true,
- "name": "string",
- "organization": {
- "avatar_url": "string",
- "description": "string",
- "email": "string",
- "full_name": "string",
- "id": 0,
- "location": "string",
- "name": "string",
- "repo_admin_change_team_access": true,
- "username": "string",
- "visibility": "string",
- "website": "string"
}, - "permission": "none",
- "units": [
- "repo.code",
- "repo.issues",
- "repo.ext_issues",
- "repo.wiki",
- "repo.pulls",
- "repo.releases",
- "repo.projects",
- "repo.ext_wiki"
], - "units_map": {
- "repo.code": "read",
- "repo.ext_issues": "none",
- "repo.ext_wiki": "none",
- "repo.issues": "write",
- "repo.projects": "none",
- "repo.pulls": "owner",
- "repo.releases": "none",
- "repo.wiki": "admin"
}
}
List a repo's tracked times
Authorizations:
path Parameters
owner required | string owner of the repo |
repo required | string name of the repo |
query Parameters
user | string optional filter by user (available for issue managers) |
since | string <date-time> Only show times updated after the given time. This is a timestamp in RFC 3339 format |
before | string <date-time> Only show times updated before the given time. This is a timestamp in RFC 3339 format |
page | integer page number of results to return (1-based) |
limit | integer page size of results |
Responses
Response samples
- 200
[- {
- "created": "2019-08-24T14:15:22Z",
- "id": 0,
- "issue": {
- "assets": [
- {
- "browser_download_url": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "download_count": 0,
- "id": 0,
- "name": "string",
- "size": 0,
- "uuid": "string"
}
], - "assignee": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "assignees": [
- {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}
], - "body": "string",
- "closed_at": "2019-08-24T14:15:22Z",
- "comments": 0,
- "created_at": "2019-08-24T14:15:22Z",
- "due_date": "2019-08-24T14:15:22Z",
- "html_url": "string",
- "id": 0,
- "is_locked": true,
- "labels": [
- {
- "color": "00aabb",
- "description": "string",
- "exclusive": false,
- "id": 0,
- "is_archived": false,
- "name": "string",
- "url": "string"
}
], - "milestone": {
- "closed_at": "2019-08-24T14:15:22Z",
- "closed_issues": 0,
- "created_at": "2019-08-24T14:15:22Z",
- "description": "string",
- "due_on": "2019-08-24T14:15:22Z",
- "id": 0,
- "open_issues": 0,
- "state": "string",
- "title": "string",
- "updated_at": "2019-08-24T14:15:22Z"
}, - "number": 0,
- "original_author": "string",
- "original_author_id": 0,
- "pin_order": 0,
- "pull_request": {
- "merged": true,
- "merged_at": "2019-08-24T14:15:22Z"
}, - "ref": "string",
- "repository": {
- "full_name": "string",
- "id": 0,
- "name": "string",
- "owner": "string"
}, - "state": "string",
- "title": "string",
- "updated_at": "2019-08-24T14:15:22Z",
- "url": "string",
- "user": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}
}, - "issue_id": 0,
- "time": 0,
- "user_id": 0,
- "user_name": "string"
}
]
List a user's tracked times in a repo Deprecated
Authorizations:
path Parameters
owner required | string owner of the repo |
repo required | string name of the repo |
user required | string username of user |
Responses
Response samples
- 200
[- {
- "created": "2019-08-24T14:15:22Z",
- "id": 0,
- "issue": {
- "assets": [
- {
- "browser_download_url": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "download_count": 0,
- "id": 0,
- "name": "string",
- "size": 0,
- "uuid": "string"
}
], - "assignee": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "assignees": [
- {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}
], - "body": "string",
- "closed_at": "2019-08-24T14:15:22Z",
- "comments": 0,
- "created_at": "2019-08-24T14:15:22Z",
- "due_date": "2019-08-24T14:15:22Z",
- "html_url": "string",
- "id": 0,
- "is_locked": true,
- "labels": [
- {
- "color": "00aabb",
- "description": "string",
- "exclusive": false,
- "id": 0,
- "is_archived": false,
- "name": "string",
- "url": "string"
}
], - "milestone": {
- "closed_at": "2019-08-24T14:15:22Z",
- "closed_issues": 0,
- "created_at": "2019-08-24T14:15:22Z",
- "description": "string",
- "due_on": "2019-08-24T14:15:22Z",
- "id": 0,
- "open_issues": 0,
- "state": "string",
- "title": "string",
- "updated_at": "2019-08-24T14:15:22Z"
}, - "number": 0,
- "original_author": "string",
- "original_author_id": 0,
- "pin_order": 0,
- "pull_request": {
- "merged": true,
- "merged_at": "2019-08-24T14:15:22Z"
}, - "ref": "string",
- "repository": {
- "full_name": "string",
- "id": 0,
- "name": "string",
- "owner": "string"
}, - "state": "string",
- "title": "string",
- "updated_at": "2019-08-24T14:15:22Z",
- "url": "string",
- "user": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}
}, - "issue_id": 0,
- "time": 0,
- "user_id": 0,
- "user_name": "string"
}
]
Get list of topics that a repository has
Authorizations:
path Parameters
owner required | string owner of the repo |
repo required | string name of the repo |
query Parameters
page | integer page number of results to return (1-based) |
limit | integer page size of results |
Responses
Response samples
- 200
{- "topics": [
- "string"
]
}
Replace list of topics for a repository
Authorizations:
path Parameters
owner required | string owner of the repo |
repo required | string name of the repo |
Request Body schema:
topics | Array of strings list of topic names |
Responses
Request samples
- Payload
{- "topics": [
- "string"
]
}
Transfer a repo ownership
Authorizations:
path Parameters
owner required | string owner of the repo to transfer |
repo required | string name of the repo to transfer |
Request Body schema: required
Transfer Options
new_owner required | string |
team_ids | Array of integers <int64> [ items <int64 > ] ID of the team or teams to add to the repository. Teams can only be added to organization-owned repositories. |
Responses
Request samples
- Payload
{- "new_owner": "string",
- "team_ids": [
- 0
]
}
Response samples
- 202
{- "allow_merge_commits": true,
- "allow_rebase": true,
- "allow_rebase_explicit": true,
- "allow_rebase_update": true,
- "allow_squash_merge": true,
- "archived": true,
- "archived_at": "2019-08-24T14:15:22Z",
- "avatar_url": "string",
- "clone_url": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "default_allow_maintainer_edit": true,
- "default_branch": "string",
- "default_delete_branch_after_merge": true,
- "default_merge_style": "string",
- "description": "string",
- "empty": true,
- "external_tracker": {
- "external_tracker_format": "string",
- "external_tracker_regexp_pattern": "string",
- "external_tracker_style": "string",
- "external_tracker_url": "string"
}, - "external_wiki": {
- "external_wiki_url": "string"
}, - "fork": true,
- "forks_count": 0,
- "full_name": "string",
- "has_actions": true,
- "has_issues": true,
- "has_packages": true,
- "has_projects": true,
- "has_pull_requests": true,
- "has_releases": true,
- "has_wiki": true,
- "html_url": "string",
- "id": 0,
- "ignore_whitespace_conflicts": true,
- "internal": true,
- "internal_tracker": {
- "allow_only_contributors_to_track_time": true,
- "enable_issue_dependencies": true,
- "enable_time_tracker": true
}, - "language": "string",
- "languages_url": "string",
- "link": "string",
- "mirror": true,
- "mirror_interval": "string",
- "mirror_updated": "2019-08-24T14:15:22Z",
- "name": "string",
- "open_issues_count": 0,
- "open_pr_counter": 0,
- "original_url": "string",
- "owner": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "parent": { },
- "permissions": {
- "admin": true,
- "pull": true,
- "push": true
}, - "private": true,
- "release_counter": 0,
- "repo_transfer": {
- "doer": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "recipient": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "teams": [
- {
- "can_create_org_repo": true,
- "description": "string",
- "id": 0,
- "includes_all_repositories": true,
- "name": "string",
- "organization": {
- "avatar_url": "string",
- "description": "string",
- "email": "string",
- "full_name": "string",
- "id": 0,
- "location": "string",
- "name": "string",
- "repo_admin_change_team_access": true,
- "username": "string",
- "visibility": "string",
- "website": "string"
}, - "permission": "none",
- "units": [
- "repo.code",
- "repo.issues",
- "repo.ext_issues",
- "repo.wiki",
- "repo.pulls",
- "repo.releases",
- "repo.projects",
- "repo.ext_wiki"
], - "units_map": {
- "repo.code": "read",
- "repo.ext_issues": "none",
- "repo.ext_wiki": "none",
- "repo.issues": "write",
- "repo.projects": "none",
- "repo.pulls": "owner",
- "repo.releases": "none",
- "repo.wiki": "admin"
}
}
]
}, - "size": 0,
- "ssh_url": "string",
- "stars_count": 0,
- "template": true,
- "updated_at": "2019-08-24T14:15:22Z",
- "url": "string",
- "watchers_count": 0,
- "website": "string"
}
Accept a repo transfer
Authorizations:
path Parameters
owner required | string owner of the repo to transfer |
repo required | string name of the repo to transfer |
Responses
Response samples
- 202
{- "allow_merge_commits": true,
- "allow_rebase": true,
- "allow_rebase_explicit": true,
- "allow_rebase_update": true,
- "allow_squash_merge": true,
- "archived": true,
- "archived_at": "2019-08-24T14:15:22Z",
- "avatar_url": "string",
- "clone_url": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "default_allow_maintainer_edit": true,
- "default_branch": "string",
- "default_delete_branch_after_merge": true,
- "default_merge_style": "string",
- "description": "string",
- "empty": true,
- "external_tracker": {
- "external_tracker_format": "string",
- "external_tracker_regexp_pattern": "string",
- "external_tracker_style": "string",
- "external_tracker_url": "string"
}, - "external_wiki": {
- "external_wiki_url": "string"
}, - "fork": true,
- "forks_count": 0,
- "full_name": "string",
- "has_actions": true,
- "has_issues": true,
- "has_packages": true,
- "has_projects": true,
- "has_pull_requests": true,
- "has_releases": true,
- "has_wiki": true,
- "html_url": "string",
- "id": 0,
- "ignore_whitespace_conflicts": true,
- "internal": true,
- "internal_tracker": {
- "allow_only_contributors_to_track_time": true,
- "enable_issue_dependencies": true,
- "enable_time_tracker": true
}, - "language": "string",
- "languages_url": "string",
- "link": "string",
- "mirror": true,
- "mirror_interval": "string",
- "mirror_updated": "2019-08-24T14:15:22Z",
- "name": "string",
- "open_issues_count": 0,
- "open_pr_counter": 0,
- "original_url": "string",
- "owner": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "parent": { },
- "permissions": {
- "admin": true,
- "pull": true,
- "push": true
}, - "private": true,
- "release_counter": 0,
- "repo_transfer": {
- "doer": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "recipient": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "teams": [
- {
- "can_create_org_repo": true,
- "description": "string",
- "id": 0,
- "includes_all_repositories": true,
- "name": "string",
- "organization": {
- "avatar_url": "string",
- "description": "string",
- "email": "string",
- "full_name": "string",
- "id": 0,
- "location": "string",
- "name": "string",
- "repo_admin_change_team_access": true,
- "username": "string",
- "visibility": "string",
- "website": "string"
}, - "permission": "none",
- "units": [
- "repo.code",
- "repo.issues",
- "repo.ext_issues",
- "repo.wiki",
- "repo.pulls",
- "repo.releases",
- "repo.projects",
- "repo.ext_wiki"
], - "units_map": {
- "repo.code": "read",
- "repo.ext_issues": "none",
- "repo.ext_wiki": "none",
- "repo.issues": "write",
- "repo.projects": "none",
- "repo.pulls": "owner",
- "repo.releases": "none",
- "repo.wiki": "admin"
}
}
]
}, - "size": 0,
- "ssh_url": "string",
- "stars_count": 0,
- "template": true,
- "updated_at": "2019-08-24T14:15:22Z",
- "url": "string",
- "watchers_count": 0,
- "website": "string"
}
Reject a repo transfer
Authorizations:
path Parameters
owner required | string owner of the repo to transfer |
repo required | string name of the repo to transfer |
Responses
Response samples
- 200
{- "allow_merge_commits": true,
- "allow_rebase": true,
- "allow_rebase_explicit": true,
- "allow_rebase_update": true,
- "allow_squash_merge": true,
- "archived": true,
- "archived_at": "2019-08-24T14:15:22Z",
- "avatar_url": "string",
- "clone_url": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "default_allow_maintainer_edit": true,
- "default_branch": "string",
- "default_delete_branch_after_merge": true,
- "default_merge_style": "string",
- "description": "string",
- "empty": true,
- "external_tracker": {
- "external_tracker_format": "string",
- "external_tracker_regexp_pattern": "string",
- "external_tracker_style": "string",
- "external_tracker_url": "string"
}, - "external_wiki": {
- "external_wiki_url": "string"
}, - "fork": true,
- "forks_count": 0,
- "full_name": "string",
- "has_actions": true,
- "has_issues": true,
- "has_packages": true,
- "has_projects": true,
- "has_pull_requests": true,
- "has_releases": true,
- "has_wiki": true,
- "html_url": "string",
- "id": 0,
- "ignore_whitespace_conflicts": true,
- "internal": true,
- "internal_tracker": {
- "allow_only_contributors_to_track_time": true,
- "enable_issue_dependencies": true,
- "enable_time_tracker": true
}, - "language": "string",
- "languages_url": "string",
- "link": "string",
- "mirror": true,
- "mirror_interval": "string",
- "mirror_updated": "2019-08-24T14:15:22Z",
- "name": "string",
- "open_issues_count": 0,
- "open_pr_counter": 0,
- "original_url": "string",
- "owner": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "parent": { },
- "permissions": {
- "admin": true,
- "pull": true,
- "push": true
}, - "private": true,
- "release_counter": 0,
- "repo_transfer": {
- "doer": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "recipient": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "teams": [
- {
- "can_create_org_repo": true,
- "description": "string",
- "id": 0,
- "includes_all_repositories": true,
- "name": "string",
- "organization": {
- "avatar_url": "string",
- "description": "string",
- "email": "string",
- "full_name": "string",
- "id": 0,
- "location": "string",
- "name": "string",
- "repo_admin_change_team_access": true,
- "username": "string",
- "visibility": "string",
- "website": "string"
}, - "permission": "none",
- "units": [
- "repo.code",
- "repo.issues",
- "repo.ext_issues",
- "repo.wiki",
- "repo.pulls",
- "repo.releases",
- "repo.projects",
- "repo.ext_wiki"
], - "units_map": {
- "repo.code": "read",
- "repo.ext_issues": "none",
- "repo.ext_wiki": "none",
- "repo.issues": "write",
- "repo.projects": "none",
- "repo.pulls": "owner",
- "repo.releases": "none",
- "repo.wiki": "admin"
}
}
]
}, - "size": 0,
- "ssh_url": "string",
- "stars_count": 0,
- "template": true,
- "updated_at": "2019-08-24T14:15:22Z",
- "url": "string",
- "watchers_count": 0,
- "website": "string"
}
Create a wiki page
Authorizations:
path Parameters
owner required | string owner of the repo |
repo required | string name of the repo |
Request Body schema: application/json
content_base64 | string content must be base64 encoded |
message | string optional commit message summarizing the change |
title | string page title. leave empty to keep unchanged |
Responses
Request samples
- Payload
{- "content_base64": "string",
- "message": "string",
- "title": "string"
}
Response samples
- 201
{- "commit_count": 0,
- "content_base64": "string",
- "footer": "string",
- "html_url": "string",
- "last_commit": {
- "author": {
- "date": "string",
- "email": "user@example.com",
- "name": "string"
}, - "commiter": {
- "date": "string",
- "email": "user@example.com",
- "name": "string"
}, - "message": "string",
- "sha": "string"
}, - "sidebar": "string",
- "sub_url": "string",
- "title": "string"
}
Get a wiki page
Authorizations:
path Parameters
owner required | string owner of the repo |
repo required | string name of the repo |
pageName required | string name of the page |
Responses
Response samples
- 200
{- "commit_count": 0,
- "content_base64": "string",
- "footer": "string",
- "html_url": "string",
- "last_commit": {
- "author": {
- "date": "string",
- "email": "user@example.com",
- "name": "string"
}, - "commiter": {
- "date": "string",
- "email": "user@example.com",
- "name": "string"
}, - "message": "string",
- "sha": "string"
}, - "sidebar": "string",
- "sub_url": "string",
- "title": "string"
}
Edit a wiki page
Authorizations:
path Parameters
owner required | string owner of the repo |
repo required | string name of the repo |
pageName required | string name of the page |
Request Body schema: application/json
content_base64 | string content must be base64 encoded |
message | string optional commit message summarizing the change |
title | string page title. leave empty to keep unchanged |
Responses
Request samples
- Payload
{- "content_base64": "string",
- "message": "string",
- "title": "string"
}
Response samples
- 200
{- "commit_count": 0,
- "content_base64": "string",
- "footer": "string",
- "html_url": "string",
- "last_commit": {
- "author": {
- "date": "string",
- "email": "user@example.com",
- "name": "string"
}, - "commiter": {
- "date": "string",
- "email": "user@example.com",
- "name": "string"
}, - "message": "string",
- "sha": "string"
}, - "sidebar": "string",
- "sub_url": "string",
- "title": "string"
}
Get all wiki pages
Authorizations:
path Parameters
owner required | string owner of the repo |
repo required | string name of the repo |
query Parameters
page | integer page number of results to return (1-based) |
limit | integer page size of results |
Responses
Response samples
- 200
[- {
- "html_url": "string",
- "last_commit": {
- "author": {
- "date": "string",
- "email": "user@example.com",
- "name": "string"
}, - "commiter": {
- "date": "string",
- "email": "user@example.com",
- "name": "string"
}, - "message": "string",
- "sha": "string"
}, - "sub_url": "string",
- "title": "string"
}
]
Get revisions of a wiki page
Authorizations:
path Parameters
owner required | string owner of the repo |
repo required | string name of the repo |
pageName required | string name of the page |
query Parameters
page | integer page number of results to return (1-based) |
Responses
Response samples
- 200
{- "commits": [
- {
- "author": {
- "date": "string",
- "email": "user@example.com",
- "name": "string"
}, - "commiter": {
- "date": "string",
- "email": "user@example.com",
- "name": "string"
}, - "message": "string",
- "sha": "string"
}
], - "count": 0
}
Create a repository using a template
Authorizations:
path Parameters
template_owner required | string name of the template repository owner |
template_repo required | string name of the template repository |
Request Body schema: application/json
avatar | boolean include avatar of the template repo |
default_branch | string Default branch of the new repository |
description | string Description of the repository to create |
git_content | boolean include git content of default branch in template repo |
git_hooks | boolean include git hooks in template repo |
labels | boolean include labels in template repo |
name required | string unique Name of the repository to create |
owner required | string The organization or person who will own the new repository |
private | boolean Whether the repository is private |
protected_branch | boolean include protected branches in template repo |
topics | boolean include topics in template repo |
webhooks | boolean include webhooks in template repo |
Responses
Request samples
- Payload
{- "avatar": true,
- "default_branch": "string",
- "description": "string",
- "git_content": true,
- "git_hooks": true,
- "labels": true,
- "name": "string",
- "owner": "string",
- "private": true,
- "protected_branch": true,
- "topics": true,
- "webhooks": true
}
Response samples
- 201
{- "allow_merge_commits": true,
- "allow_rebase": true,
- "allow_rebase_explicit": true,
- "allow_rebase_update": true,
- "allow_squash_merge": true,
- "archived": true,
- "archived_at": "2019-08-24T14:15:22Z",
- "avatar_url": "string",
- "clone_url": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "default_allow_maintainer_edit": true,
- "default_branch": "string",
- "default_delete_branch_after_merge": true,
- "default_merge_style": "string",
- "description": "string",
- "empty": true,
- "external_tracker": {
- "external_tracker_format": "string",
- "external_tracker_regexp_pattern": "string",
- "external_tracker_style": "string",
- "external_tracker_url": "string"
}, - "external_wiki": {
- "external_wiki_url": "string"
}, - "fork": true,
- "forks_count": 0,
- "full_name": "string",
- "has_actions": true,
- "has_issues": true,
- "has_packages": true,
- "has_projects": true,
- "has_pull_requests": true,
- "has_releases": true,
- "has_wiki": true,
- "html_url": "string",
- "id": 0,
- "ignore_whitespace_conflicts": true,
- "internal": true,
- "internal_tracker": {
- "allow_only_contributors_to_track_time": true,
- "enable_issue_dependencies": true,
- "enable_time_tracker": true
}, - "language": "string",
- "languages_url": "string",
- "link": "string",
- "mirror": true,
- "mirror_interval": "string",
- "mirror_updated": "2019-08-24T14:15:22Z",
- "name": "string",
- "open_issues_count": 0,
- "open_pr_counter": 0,
- "original_url": "string",
- "owner": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "parent": { },
- "permissions": {
- "admin": true,
- "pull": true,
- "push": true
}, - "private": true,
- "release_counter": 0,
- "repo_transfer": {
- "doer": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "recipient": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "teams": [
- {
- "can_create_org_repo": true,
- "description": "string",
- "id": 0,
- "includes_all_repositories": true,
- "name": "string",
- "organization": {
- "avatar_url": "string",
- "description": "string",
- "email": "string",
- "full_name": "string",
- "id": 0,
- "location": "string",
- "name": "string",
- "repo_admin_change_team_access": true,
- "username": "string",
- "visibility": "string",
- "website": "string"
}, - "permission": "none",
- "units": [
- "repo.code",
- "repo.issues",
- "repo.ext_issues",
- "repo.wiki",
- "repo.pulls",
- "repo.releases",
- "repo.projects",
- "repo.ext_wiki"
], - "units_map": {
- "repo.code": "read",
- "repo.ext_issues": "none",
- "repo.ext_wiki": "none",
- "repo.issues": "write",
- "repo.projects": "none",
- "repo.pulls": "owner",
- "repo.releases": "none",
- "repo.wiki": "admin"
}
}
]
}, - "size": 0,
- "ssh_url": "string",
- "stars_count": 0,
- "template": true,
- "updated_at": "2019-08-24T14:15:22Z",
- "url": "string",
- "watchers_count": 0,
- "website": "string"
}
Get a repository by id
Authorizations:
path Parameters
id required | integer <int64> id of the repo to get |
Responses
Response samples
- 200
{- "allow_merge_commits": true,
- "allow_rebase": true,
- "allow_rebase_explicit": true,
- "allow_rebase_update": true,
- "allow_squash_merge": true,
- "archived": true,
- "archived_at": "2019-08-24T14:15:22Z",
- "avatar_url": "string",
- "clone_url": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "default_allow_maintainer_edit": true,
- "default_branch": "string",
- "default_delete_branch_after_merge": true,
- "default_merge_style": "string",
- "description": "string",
- "empty": true,
- "external_tracker": {
- "external_tracker_format": "string",
- "external_tracker_regexp_pattern": "string",
- "external_tracker_style": "string",
- "external_tracker_url": "string"
}, - "external_wiki": {
- "external_wiki_url": "string"
}, - "fork": true,
- "forks_count": 0,
- "full_name": "string",
- "has_actions": true,
- "has_issues": true,
- "has_packages": true,
- "has_projects": true,
- "has_pull_requests": true,
- "has_releases": true,
- "has_wiki": true,
- "html_url": "string",
- "id": 0,
- "ignore_whitespace_conflicts": true,
- "internal": true,
- "internal_tracker": {
- "allow_only_contributors_to_track_time": true,
- "enable_issue_dependencies": true,
- "enable_time_tracker": true
}, - "language": "string",
- "languages_url": "string",
- "link": "string",
- "mirror": true,
- "mirror_interval": "string",
- "mirror_updated": "2019-08-24T14:15:22Z",
- "name": "string",
- "open_issues_count": 0,
- "open_pr_counter": 0,
- "original_url": "string",
- "owner": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "parent": { },
- "permissions": {
- "admin": true,
- "pull": true,
- "push": true
}, - "private": true,
- "release_counter": 0,
- "repo_transfer": {
- "doer": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "recipient": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "teams": [
- {
- "can_create_org_repo": true,
- "description": "string",
- "id": 0,
- "includes_all_repositories": true,
- "name": "string",
- "organization": {
- "avatar_url": "string",
- "description": "string",
- "email": "string",
- "full_name": "string",
- "id": 0,
- "location": "string",
- "name": "string",
- "repo_admin_change_team_access": true,
- "username": "string",
- "visibility": "string",
- "website": "string"
}, - "permission": "none",
- "units": [
- "repo.code",
- "repo.issues",
- "repo.ext_issues",
- "repo.wiki",
- "repo.pulls",
- "repo.releases",
- "repo.projects",
- "repo.ext_wiki"
], - "units_map": {
- "repo.code": "read",
- "repo.ext_issues": "none",
- "repo.ext_wiki": "none",
- "repo.issues": "write",
- "repo.projects": "none",
- "repo.pulls": "owner",
- "repo.releases": "none",
- "repo.wiki": "admin"
}
}
]
}, - "size": 0,
- "ssh_url": "string",
- "stars_count": 0,
- "template": true,
- "updated_at": "2019-08-24T14:15:22Z",
- "url": "string",
- "watchers_count": 0,
- "website": "string"
}
search topics via keyword
Authorizations:
query Parameters
q required | string keywords to search |
page | integer page number of results to return (1-based) |
limit | integer page size of results |
Responses
Response samples
- 200
[- {
- "created": "2019-08-24T14:15:22Z",
- "id": 0,
- "repo_count": 0,
- "topic_name": "string",
- "updated": "2019-08-24T14:15:22Z"
}
]
Create a repository
Authorizations:
Request Body schema: application/json
auto_init | boolean Whether the repository should be auto-initialized? |
default_branch | string DefaultBranch of the repository (used when initializes and in template) |
description | string Description of the repository to create |
gitignores | string Gitignores to use |
issue_labels | string Label-Set to use |
license | string License to use |
name required | string unique Name of the repository to create |
private | boolean Whether the repository is private |
readme | string Readme of the repository to create |
template | boolean Whether the repository is template |
trust_model | string Enum: "default" "collaborator" "committer" "collaboratorcommitter" TrustModel of the repository |
Responses
Request samples
- Payload
{- "auto_init": true,
- "default_branch": "string",
- "description": "string",
- "gitignores": "string",
- "issue_labels": "string",
- "license": "string",
- "name": "string",
- "private": true,
- "readme": "string",
- "template": true,
- "trust_model": "default"
}
Response samples
- 201
{- "allow_merge_commits": true,
- "allow_rebase": true,
- "allow_rebase_explicit": true,
- "allow_rebase_update": true,
- "allow_squash_merge": true,
- "archived": true,
- "archived_at": "2019-08-24T14:15:22Z",
- "avatar_url": "string",
- "clone_url": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "default_allow_maintainer_edit": true,
- "default_branch": "string",
- "default_delete_branch_after_merge": true,
- "default_merge_style": "string",
- "description": "string",
- "empty": true,
- "external_tracker": {
- "external_tracker_format": "string",
- "external_tracker_regexp_pattern": "string",
- "external_tracker_style": "string",
- "external_tracker_url": "string"
}, - "external_wiki": {
- "external_wiki_url": "string"
}, - "fork": true,
- "forks_count": 0,
- "full_name": "string",
- "has_actions": true,
- "has_issues": true,
- "has_packages": true,
- "has_projects": true,
- "has_pull_requests": true,
- "has_releases": true,
- "has_wiki": true,
- "html_url": "string",
- "id": 0,
- "ignore_whitespace_conflicts": true,
- "internal": true,
- "internal_tracker": {
- "allow_only_contributors_to_track_time": true,
- "enable_issue_dependencies": true,
- "enable_time_tracker": true
}, - "language": "string",
- "languages_url": "string",
- "link": "string",
- "mirror": true,
- "mirror_interval": "string",
- "mirror_updated": "2019-08-24T14:15:22Z",
- "name": "string",
- "open_issues_count": 0,
- "open_pr_counter": 0,
- "original_url": "string",
- "owner": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "parent": { },
- "permissions": {
- "admin": true,
- "pull": true,
- "push": true
}, - "private": true,
- "release_counter": 0,
- "repo_transfer": {
- "doer": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "recipient": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "teams": [
- {
- "can_create_org_repo": true,
- "description": "string",
- "id": 0,
- "includes_all_repositories": true,
- "name": "string",
- "organization": {
- "avatar_url": "string",
- "description": "string",
- "email": "string",
- "full_name": "string",
- "id": 0,
- "location": "string",
- "name": "string",
- "repo_admin_change_team_access": true,
- "username": "string",
- "visibility": "string",
- "website": "string"
}, - "permission": "none",
- "units": [
- "repo.code",
- "repo.issues",
- "repo.ext_issues",
- "repo.wiki",
- "repo.pulls",
- "repo.releases",
- "repo.projects",
- "repo.ext_wiki"
], - "units_map": {
- "repo.code": "read",
- "repo.ext_issues": "none",
- "repo.ext_wiki": "none",
- "repo.issues": "write",
- "repo.projects": "none",
- "repo.pulls": "owner",
- "repo.releases": "none",
- "repo.wiki": "admin"
}
}
]
}, - "size": 0,
- "ssh_url": "string",
- "stars_count": 0,
- "template": true,
- "updated_at": "2019-08-24T14:15:22Z",
- "url": "string",
- "watchers_count": 0,
- "website": "string"
}
Get instance's global settings for repositories
Authorizations:
Responses
Response samples
- 200
{- "http_git_disabled": true,
- "lfs_disabled": true,
- "migrations_disabled": true,
- "mirrors_disabled": true,
- "stars_disabled": true,
- "time_tracking_disabled": true
}
Get the authenticated user
Authorizations:
Responses
Response samples
- 200
{- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}
Create or Update a secret value in a user scope
Authorizations:
path Parameters
secretname required | string name of the secret |
Request Body schema: application/json
data required | string Data of the secret to update |
Responses
Request samples
- Payload
{- "data": "string"
}
List the authenticated user's oauth2 applications
Authorizations:
query Parameters
page | integer page number of results to return (1-based) |
limit | integer page size of results |
Responses
Response samples
- 200
[- {
- "client_id": "string",
- "client_secret": "string",
- "confidential_client": true,
- "created": "2019-08-24T14:15:22Z",
- "id": 0,
- "name": "string",
- "redirect_uris": [
- "string"
]
}
]
creates a new OAuth2 application
Authorizations:
Request Body schema: required
confidential_client | boolean |
name | string |
redirect_uris | Array of strings |
Responses
Request samples
- Payload
{- "confidential_client": true,
- "name": "string",
- "redirect_uris": [
- "string"
]
}
Response samples
- 201
{- "client_id": "string",
- "client_secret": "string",
- "confidential_client": true,
- "created": "2019-08-24T14:15:22Z",
- "id": 0,
- "name": "string",
- "redirect_uris": [
- "string"
]
}
get an OAuth2 Application
Authorizations:
path Parameters
id required | integer <int64> Application ID to be found |
Responses
Response samples
- 200
{- "client_id": "string",
- "client_secret": "string",
- "confidential_client": true,
- "created": "2019-08-24T14:15:22Z",
- "id": 0,
- "name": "string",
- "redirect_uris": [
- "string"
]
}
update an OAuth2 Application, this includes regenerating the client secret
Authorizations:
path Parameters
id required | integer <int64> application to be updated |
Request Body schema: required
confidential_client | boolean |
name | string |
redirect_uris | Array of strings |
Responses
Request samples
- Payload
{- "confidential_client": true,
- "name": "string",
- "redirect_uris": [
- "string"
]
}
Response samples
- 200
{- "client_id": "string",
- "client_secret": "string",
- "confidential_client": true,
- "created": "2019-08-24T14:15:22Z",
- "id": 0,
- "name": "string",
- "redirect_uris": [
- "string"
]
}
Add email addresses
Authorizations:
Request Body schema:
emails | Array of strings email addresses to add |
Responses
Request samples
- Payload
{- "emails": [
- "string"
]
}
Response samples
- 201
[- {
- "email": "user@example.com",
- "primary": true,
- "user_id": 0,
- "username": "string",
- "verified": true
}
]
List the authenticated user's followers
Authorizations:
query Parameters
page | integer page number of results to return (1-based) |
limit | integer page size of results |
Responses
Response samples
- 200
[- {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}
]
List the users that the authenticated user is following
Authorizations:
query Parameters
page | integer page number of results to return (1-based) |
limit | integer page size of results |
Responses
Response samples
- 200
[- {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}
]
Verify a GPG key
Authorizations:
Responses
Response samples
- 201
{- "can_certify": true,
- "can_encrypt_comms": true,
- "can_encrypt_storage": true,
- "can_sign": true,
- "created_at": "2019-08-24T14:15:22Z",
- "emails": [
- {
- "email": "string",
- "verified": true
}
], - "expires_at": "2019-08-24T14:15:22Z",
- "id": 0,
- "key_id": "string",
- "primary_key_id": "string",
- "public_key": "string",
- "subkeys": [
- { }
], - "verified": true
}
List the authenticated user's GPG keys
Authorizations:
query Parameters
page | integer page number of results to return (1-based) |
limit | integer page size of results |
Responses
Response samples
- 200
[- {
- "can_certify": true,
- "can_encrypt_comms": true,
- "can_encrypt_storage": true,
- "can_sign": true,
- "created_at": "2019-08-24T14:15:22Z",
- "emails": [
- {
- "email": "string",
- "verified": true
}
], - "expires_at": "2019-08-24T14:15:22Z",
- "id": 0,
- "key_id": "string",
- "primary_key_id": "string",
- "public_key": "string",
- "subkeys": [
- { }
], - "verified": true
}
]
Create a GPG key
Authorizations:
Request Body schema: application/json
armored_public_key required | string unique An armored GPG key to add |
armored_signature | string |
Responses
Request samples
- Payload
{- "armored_public_key": "string",
- "armored_signature": "string"
}
Response samples
- 201
{- "can_certify": true,
- "can_encrypt_comms": true,
- "can_encrypt_storage": true,
- "can_sign": true,
- "created_at": "2019-08-24T14:15:22Z",
- "emails": [
- {
- "email": "string",
- "verified": true
}
], - "expires_at": "2019-08-24T14:15:22Z",
- "id": 0,
- "key_id": "string",
- "primary_key_id": "string",
- "public_key": "string",
- "subkeys": [
- { }
], - "verified": true
}
Get a GPG key
Authorizations:
path Parameters
id required | integer <int64> id of key to get |
Responses
Response samples
- 200
{- "can_certify": true,
- "can_encrypt_comms": true,
- "can_encrypt_storage": true,
- "can_sign": true,
- "created_at": "2019-08-24T14:15:22Z",
- "emails": [
- {
- "email": "string",
- "verified": true
}
], - "expires_at": "2019-08-24T14:15:22Z",
- "id": 0,
- "key_id": "string",
- "primary_key_id": "string",
- "public_key": "string",
- "subkeys": [
- { }
], - "verified": true
}
List the authenticated user's webhooks
Authorizations:
query Parameters
page | integer page number of results to return (1-based) |
limit | integer page size of results |
Responses
Response samples
- 200
[- {
- "active": true,
- "authorization_header": "string",
- "branch_filter": "string",
- "config": {
- "property1": "string",
- "property2": "string"
}, - "created_at": "2019-08-24T14:15:22Z",
- "events": [
- "string"
], - "id": 0,
- "type": "string",
- "updated_at": "2019-08-24T14:15:22Z"
}
]
Create a hook
Authorizations:
Request Body schema: application/jsonrequired
active | boolean Default: false |
authorization_header | string |
branch_filter | string |
required | object (CreateHookOptionConfig) CreateHookOptionConfig has all config options in it required are "content_type" and "url" Required |
events | Array of strings |
type required | string Enum: "dingtalk" "discord" "gitea" "gogs" "msteams" "slack" "telegram" "feishu" "wechatwork" "packagist" |
Responses
Request samples
- Payload
{- "active": false,
- "authorization_header": "string",
- "branch_filter": "string",
- "config": {
- "property1": "string",
- "property2": "string"
}, - "events": [
- "string"
], - "type": "dingtalk"
}
Response samples
- 201
{- "active": true,
- "authorization_header": "string",
- "branch_filter": "string",
- "config": {
- "property1": "string",
- "property2": "string"
}, - "created_at": "2019-08-24T14:15:22Z",
- "events": [
- "string"
], - "id": 0,
- "type": "string",
- "updated_at": "2019-08-24T14:15:22Z"
}
Get a hook
Authorizations:
path Parameters
id required | integer <int64> id of the hook to get |
Responses
Response samples
- 200
{- "active": true,
- "authorization_header": "string",
- "branch_filter": "string",
- "config": {
- "property1": "string",
- "property2": "string"
}, - "created_at": "2019-08-24T14:15:22Z",
- "events": [
- "string"
], - "id": 0,
- "type": "string",
- "updated_at": "2019-08-24T14:15:22Z"
}
Update a hook
Authorizations:
path Parameters
id required | integer <int64> id of the hook to update |
Request Body schema: application/json
active | boolean |
authorization_header | string |
branch_filter | string |
object | |
events | Array of strings |
Responses
Request samples
- Payload
{- "active": true,
- "authorization_header": "string",
- "branch_filter": "string",
- "config": {
- "property1": "string",
- "property2": "string"
}, - "events": [
- "string"
]
}
Response samples
- 200
{- "active": true,
- "authorization_header": "string",
- "branch_filter": "string",
- "config": {
- "property1": "string",
- "property2": "string"
}, - "created_at": "2019-08-24T14:15:22Z",
- "events": [
- "string"
], - "id": 0,
- "type": "string",
- "updated_at": "2019-08-24T14:15:22Z"
}
List the authenticated user's public keys
Authorizations:
query Parameters
fingerprint | string fingerprint of the key |
page | integer page number of results to return (1-based) |
limit | integer page size of results |
Responses
Response samples
- 200
[- {
- "created_at": "2019-08-24T14:15:22Z",
- "fingerprint": "string",
- "id": 0,
- "key": "string",
- "key_type": "string",
- "read_only": true,
- "title": "string",
- "url": "string",
- "user": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}
}
]
Create a public key
Authorizations:
Request Body schema: application/json
key required | string unique An armored SSH key to add |
read_only | boolean Describe if the key has only read access or read/write |
title required | string unique Title of the key to add |
Responses
Request samples
- Payload
{- "key": "string",
- "read_only": true,
- "title": "string"
}
Response samples
- 201
{- "created_at": "2019-08-24T14:15:22Z",
- "fingerprint": "string",
- "id": 0,
- "key": "string",
- "key_type": "string",
- "read_only": true,
- "title": "string",
- "url": "string",
- "user": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}
}
Get a public key
Authorizations:
path Parameters
id required | integer <int64> id of key to get |
Responses
Response samples
- 200
{- "created_at": "2019-08-24T14:15:22Z",
- "fingerprint": "string",
- "id": 0,
- "key": "string",
- "key_type": "string",
- "read_only": true,
- "title": "string",
- "url": "string",
- "user": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}
}
List the repos that the authenticated user owns
Authorizations:
query Parameters
page | integer page number of results to return (1-based) |
limit | integer page size of results |
Responses
Response samples
- 200
[- {
- "allow_merge_commits": true,
- "allow_rebase": true,
- "allow_rebase_explicit": true,
- "allow_rebase_update": true,
- "allow_squash_merge": true,
- "archived": true,
- "archived_at": "2019-08-24T14:15:22Z",
- "avatar_url": "string",
- "clone_url": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "default_allow_maintainer_edit": true,
- "default_branch": "string",
- "default_delete_branch_after_merge": true,
- "default_merge_style": "string",
- "description": "string",
- "empty": true,
- "external_tracker": {
- "external_tracker_format": "string",
- "external_tracker_regexp_pattern": "string",
- "external_tracker_style": "string",
- "external_tracker_url": "string"
}, - "external_wiki": {
- "external_wiki_url": "string"
}, - "fork": true,
- "forks_count": 0,
- "full_name": "string",
- "has_actions": true,
- "has_issues": true,
- "has_packages": true,
- "has_projects": true,
- "has_pull_requests": true,
- "has_releases": true,
- "has_wiki": true,
- "html_url": "string",
- "id": 0,
- "ignore_whitespace_conflicts": true,
- "internal": true,
- "internal_tracker": {
- "allow_only_contributors_to_track_time": true,
- "enable_issue_dependencies": true,
- "enable_time_tracker": true
}, - "language": "string",
- "languages_url": "string",
- "link": "string",
- "mirror": true,
- "mirror_interval": "string",
- "mirror_updated": "2019-08-24T14:15:22Z",
- "name": "string",
- "open_issues_count": 0,
- "open_pr_counter": 0,
- "original_url": "string",
- "owner": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "parent": { },
- "permissions": {
- "admin": true,
- "pull": true,
- "push": true
}, - "private": true,
- "release_counter": 0,
- "repo_transfer": {
- "doer": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "recipient": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "teams": [
- {
- "can_create_org_repo": true,
- "description": "string",
- "id": 0,
- "includes_all_repositories": true,
- "name": "string",
- "organization": {
- "avatar_url": "string",
- "description": "string",
- "email": "string",
- "full_name": "string",
- "id": 0,
- "location": "string",
- "name": "string",
- "repo_admin_change_team_access": true,
- "username": "string",
- "visibility": "string",
- "website": "string"
}, - "permission": "none",
- "units": [
- "repo.code",
- "repo.issues",
- "repo.ext_issues",
- "repo.wiki",
- "repo.pulls",
- "repo.releases",
- "repo.projects",
- "repo.ext_wiki"
], - "units_map": {
- "repo.code": "read",
- "repo.ext_issues": "none",
- "repo.ext_wiki": "none",
- "repo.issues": "write",
- "repo.projects": "none",
- "repo.pulls": "owner",
- "repo.releases": "none",
- "repo.wiki": "admin"
}
}
]
}, - "size": 0,
- "ssh_url": "string",
- "stars_count": 0,
- "template": true,
- "updated_at": "2019-08-24T14:15:22Z",
- "url": "string",
- "watchers_count": 0,
- "website": "string"
}
]
Create a repository
Authorizations:
Request Body schema: application/json
auto_init | boolean Whether the repository should be auto-initialized? |
default_branch | string DefaultBranch of the repository (used when initializes and in template) |
description | string Description of the repository to create |
gitignores | string Gitignores to use |
issue_labels | string Label-Set to use |
license | string License to use |
name required | string unique Name of the repository to create |
private | boolean Whether the repository is private |
readme | string Readme of the repository to create |
template | boolean Whether the repository is template |
trust_model | string Enum: "default" "collaborator" "committer" "collaboratorcommitter" TrustModel of the repository |
Responses
Request samples
- Payload
{- "auto_init": true,
- "default_branch": "string",
- "description": "string",
- "gitignores": "string",
- "issue_labels": "string",
- "license": "string",
- "name": "string",
- "private": true,
- "readme": "string",
- "template": true,
- "trust_model": "default"
}
Response samples
- 201
{- "allow_merge_commits": true,
- "allow_rebase": true,
- "allow_rebase_explicit": true,
- "allow_rebase_update": true,
- "allow_squash_merge": true,
- "archived": true,
- "archived_at": "2019-08-24T14:15:22Z",
- "avatar_url": "string",
- "clone_url": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "default_allow_maintainer_edit": true,
- "default_branch": "string",
- "default_delete_branch_after_merge": true,
- "default_merge_style": "string",
- "description": "string",
- "empty": true,
- "external_tracker": {
- "external_tracker_format": "string",
- "external_tracker_regexp_pattern": "string",
- "external_tracker_style": "string",
- "external_tracker_url": "string"
}, - "external_wiki": {
- "external_wiki_url": "string"
}, - "fork": true,
- "forks_count": 0,
- "full_name": "string",
- "has_actions": true,
- "has_issues": true,
- "has_packages": true,
- "has_projects": true,
- "has_pull_requests": true,
- "has_releases": true,
- "has_wiki": true,
- "html_url": "string",
- "id": 0,
- "ignore_whitespace_conflicts": true,
- "internal": true,
- "internal_tracker": {
- "allow_only_contributors_to_track_time": true,
- "enable_issue_dependencies": true,
- "enable_time_tracker": true
}, - "language": "string",
- "languages_url": "string",
- "link": "string",
- "mirror": true,
- "mirror_interval": "string",
- "mirror_updated": "2019-08-24T14:15:22Z",
- "name": "string",
- "open_issues_count": 0,
- "open_pr_counter": 0,
- "original_url": "string",
- "owner": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "parent": { },
- "permissions": {
- "admin": true,
- "pull": true,
- "push": true
}, - "private": true,
- "release_counter": 0,
- "repo_transfer": {
- "doer": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "recipient": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "teams": [
- {
- "can_create_org_repo": true,
- "description": "string",
- "id": 0,
- "includes_all_repositories": true,
- "name": "string",
- "organization": {
- "avatar_url": "string",
- "description": "string",
- "email": "string",
- "full_name": "string",
- "id": 0,
- "location": "string",
- "name": "string",
- "repo_admin_change_team_access": true,
- "username": "string",
- "visibility": "string",
- "website": "string"
}, - "permission": "none",
- "units": [
- "repo.code",
- "repo.issues",
- "repo.ext_issues",
- "repo.wiki",
- "repo.pulls",
- "repo.releases",
- "repo.projects",
- "repo.ext_wiki"
], - "units_map": {
- "repo.code": "read",
- "repo.ext_issues": "none",
- "repo.ext_wiki": "none",
- "repo.issues": "write",
- "repo.projects": "none",
- "repo.pulls": "owner",
- "repo.releases": "none",
- "repo.wiki": "admin"
}
}
]
}, - "size": 0,
- "ssh_url": "string",
- "stars_count": 0,
- "template": true,
- "updated_at": "2019-08-24T14:15:22Z",
- "url": "string",
- "watchers_count": 0,
- "website": "string"
}
Get user settings
Authorizations:
Responses
Response samples
- 200
[- {
- "description": "string",
- "diff_view_style": "string",
- "full_name": "string",
- "hide_activity": true,
- "hide_email": true,
- "language": "string",
- "location": "string",
- "theme": "string",
- "website": "string"
}
]
Update user settings
Authorizations:
Request Body schema:
description | string |
diff_view_style | string |
full_name | string |
hide_activity | boolean |
hide_email | boolean Privacy |
language | string |
location | string |
theme | string |
website | string |
Responses
Request samples
- Payload
{- "description": "string",
- "diff_view_style": "string",
- "full_name": "string",
- "hide_activity": true,
- "hide_email": true,
- "language": "string",
- "location": "string",
- "theme": "string",
- "website": "string"
}
Response samples
- 200
[- {
- "description": "string",
- "diff_view_style": "string",
- "full_name": "string",
- "hide_activity": true,
- "hide_email": true,
- "language": "string",
- "location": "string",
- "theme": "string",
- "website": "string"
}
]
The repos that the authenticated user has starred
Authorizations:
query Parameters
page | integer page number of results to return (1-based) |
limit | integer page size of results |
Responses
Response samples
- 200
[- {
- "allow_merge_commits": true,
- "allow_rebase": true,
- "allow_rebase_explicit": true,
- "allow_rebase_update": true,
- "allow_squash_merge": true,
- "archived": true,
- "archived_at": "2019-08-24T14:15:22Z",
- "avatar_url": "string",
- "clone_url": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "default_allow_maintainer_edit": true,
- "default_branch": "string",
- "default_delete_branch_after_merge": true,
- "default_merge_style": "string",
- "description": "string",
- "empty": true,
- "external_tracker": {
- "external_tracker_format": "string",
- "external_tracker_regexp_pattern": "string",
- "external_tracker_style": "string",
- "external_tracker_url": "string"
}, - "external_wiki": {
- "external_wiki_url": "string"
}, - "fork": true,
- "forks_count": 0,
- "full_name": "string",
- "has_actions": true,
- "has_issues": true,
- "has_packages": true,
- "has_projects": true,
- "has_pull_requests": true,
- "has_releases": true,
- "has_wiki": true,
- "html_url": "string",
- "id": 0,
- "ignore_whitespace_conflicts": true,
- "internal": true,
- "internal_tracker": {
- "allow_only_contributors_to_track_time": true,
- "enable_issue_dependencies": true,
- "enable_time_tracker": true
}, - "language": "string",
- "languages_url": "string",
- "link": "string",
- "mirror": true,
- "mirror_interval": "string",
- "mirror_updated": "2019-08-24T14:15:22Z",
- "name": "string",
- "open_issues_count": 0,
- "open_pr_counter": 0,
- "original_url": "string",
- "owner": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "parent": { },
- "permissions": {
- "admin": true,
- "pull": true,
- "push": true
}, - "private": true,
- "release_counter": 0,
- "repo_transfer": {
- "doer": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "recipient": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "teams": [
- {
- "can_create_org_repo": true,
- "description": "string",
- "id": 0,
- "includes_all_repositories": true,
- "name": "string",
- "organization": {
- "avatar_url": "string",
- "description": "string",
- "email": "string",
- "full_name": "string",
- "id": 0,
- "location": "string",
- "name": "string",
- "repo_admin_change_team_access": true,
- "username": "string",
- "visibility": "string",
- "website": "string"
}, - "permission": "none",
- "units": [
- "repo.code",
- "repo.issues",
- "repo.ext_issues",
- "repo.wiki",
- "repo.pulls",
- "repo.releases",
- "repo.projects",
- "repo.ext_wiki"
], - "units_map": {
- "repo.code": "read",
- "repo.ext_issues": "none",
- "repo.ext_wiki": "none",
- "repo.issues": "write",
- "repo.projects": "none",
- "repo.pulls": "owner",
- "repo.releases": "none",
- "repo.wiki": "admin"
}
}
]
}, - "size": 0,
- "ssh_url": "string",
- "stars_count": 0,
- "template": true,
- "updated_at": "2019-08-24T14:15:22Z",
- "url": "string",
- "watchers_count": 0,
- "website": "string"
}
]
Get list of all existing stopwatches
Authorizations:
query Parameters
page | integer page number of results to return (1-based) |
limit | integer page size of results |
Responses
Response samples
- 200
[- {
- "created": "2019-08-24T14:15:22Z",
- "duration": "string",
- "issue_index": 0,
- "issue_title": "string",
- "repo_name": "string",
- "repo_owner_name": "string",
- "seconds": 0
}
]
List repositories watched by the authenticated user
Authorizations:
query Parameters
page | integer page number of results to return (1-based) |
limit | integer page size of results |
Responses
Response samples
- 200
[- {
- "allow_merge_commits": true,
- "allow_rebase": true,
- "allow_rebase_explicit": true,
- "allow_rebase_update": true,
- "allow_squash_merge": true,
- "archived": true,
- "archived_at": "2019-08-24T14:15:22Z",
- "avatar_url": "string",
- "clone_url": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "default_allow_maintainer_edit": true,
- "default_branch": "string",
- "default_delete_branch_after_merge": true,
- "default_merge_style": "string",
- "description": "string",
- "empty": true,
- "external_tracker": {
- "external_tracker_format": "string",
- "external_tracker_regexp_pattern": "string",
- "external_tracker_style": "string",
- "external_tracker_url": "string"
}, - "external_wiki": {
- "external_wiki_url": "string"
}, - "fork": true,
- "forks_count": 0,
- "full_name": "string",
- "has_actions": true,
- "has_issues": true,
- "has_packages": true,
- "has_projects": true,
- "has_pull_requests": true,
- "has_releases": true,
- "has_wiki": true,
- "html_url": "string",
- "id": 0,
- "ignore_whitespace_conflicts": true,
- "internal": true,
- "internal_tracker": {
- "allow_only_contributors_to_track_time": true,
- "enable_issue_dependencies": true,
- "enable_time_tracker": true
}, - "language": "string",
- "languages_url": "string",
- "link": "string",
- "mirror": true,
- "mirror_interval": "string",
- "mirror_updated": "2019-08-24T14:15:22Z",
- "name": "string",
- "open_issues_count": 0,
- "open_pr_counter": 0,
- "original_url": "string",
- "owner": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "parent": { },
- "permissions": {
- "admin": true,
- "pull": true,
- "push": true
}, - "private": true,
- "release_counter": 0,
- "repo_transfer": {
- "doer": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "recipient": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "teams": [
- {
- "can_create_org_repo": true,
- "description": "string",
- "id": 0,
- "includes_all_repositories": true,
- "name": "string",
- "organization": {
- "avatar_url": "string",
- "description": "string",
- "email": "string",
- "full_name": "string",
- "id": 0,
- "location": "string",
- "name": "string",
- "repo_admin_change_team_access": true,
- "username": "string",
- "visibility": "string",
- "website": "string"
}, - "permission": "none",
- "units": [
- "repo.code",
- "repo.issues",
- "repo.ext_issues",
- "repo.wiki",
- "repo.pulls",
- "repo.releases",
- "repo.projects",
- "repo.ext_wiki"
], - "units_map": {
- "repo.code": "read",
- "repo.ext_issues": "none",
- "repo.ext_wiki": "none",
- "repo.issues": "write",
- "repo.projects": "none",
- "repo.pulls": "owner",
- "repo.releases": "none",
- "repo.wiki": "admin"
}
}
]
}, - "size": 0,
- "ssh_url": "string",
- "stars_count": 0,
- "template": true,
- "updated_at": "2019-08-24T14:15:22Z",
- "url": "string",
- "watchers_count": 0,
- "website": "string"
}
]
List all the teams a user belongs to
Authorizations:
query Parameters
page | integer page number of results to return (1-based) |
limit | integer page size of results |
Responses
Response samples
- 200
[- {
- "can_create_org_repo": true,
- "description": "string",
- "id": 0,
- "includes_all_repositories": true,
- "name": "string",
- "organization": {
- "avatar_url": "string",
- "description": "string",
- "email": "string",
- "full_name": "string",
- "id": 0,
- "location": "string",
- "name": "string",
- "repo_admin_change_team_access": true,
- "username": "string",
- "visibility": "string",
- "website": "string"
}, - "permission": "none",
- "units": [
- "repo.code",
- "repo.issues",
- "repo.ext_issues",
- "repo.wiki",
- "repo.pulls",
- "repo.releases",
- "repo.projects",
- "repo.ext_wiki"
], - "units_map": {
- "repo.code": "read",
- "repo.ext_issues": "none",
- "repo.ext_wiki": "none",
- "repo.issues": "write",
- "repo.projects": "none",
- "repo.pulls": "owner",
- "repo.releases": "none",
- "repo.wiki": "admin"
}
}
]
List the current user's tracked times
Authorizations:
query Parameters
page | integer page number of results to return (1-based) |
limit | integer page size of results |
since | string <date-time> Only show times updated after the given time. This is a timestamp in RFC 3339 format |
before | string <date-time> Only show times updated before the given time. This is a timestamp in RFC 3339 format |
Responses
Response samples
- 200
[- {
- "created": "2019-08-24T14:15:22Z",
- "id": 0,
- "issue": {
- "assets": [
- {
- "browser_download_url": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "download_count": 0,
- "id": 0,
- "name": "string",
- "size": 0,
- "uuid": "string"
}
], - "assignee": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "assignees": [
- {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}
], - "body": "string",
- "closed_at": "2019-08-24T14:15:22Z",
- "comments": 0,
- "created_at": "2019-08-24T14:15:22Z",
- "due_date": "2019-08-24T14:15:22Z",
- "html_url": "string",
- "id": 0,
- "is_locked": true,
- "labels": [
- {
- "color": "00aabb",
- "description": "string",
- "exclusive": false,
- "id": 0,
- "is_archived": false,
- "name": "string",
- "url": "string"
}
], - "milestone": {
- "closed_at": "2019-08-24T14:15:22Z",
- "closed_issues": 0,
- "created_at": "2019-08-24T14:15:22Z",
- "description": "string",
- "due_on": "2019-08-24T14:15:22Z",
- "id": 0,
- "open_issues": 0,
- "state": "string",
- "title": "string",
- "updated_at": "2019-08-24T14:15:22Z"
}, - "number": 0,
- "original_author": "string",
- "original_author_id": 0,
- "pin_order": 0,
- "pull_request": {
- "merged": true,
- "merged_at": "2019-08-24T14:15:22Z"
}, - "ref": "string",
- "repository": {
- "full_name": "string",
- "id": 0,
- "name": "string",
- "owner": "string"
}, - "state": "string",
- "title": "string",
- "updated_at": "2019-08-24T14:15:22Z",
- "url": "string",
- "user": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}
}, - "issue_id": 0,
- "time": 0,
- "user_id": 0,
- "user_name": "string"
}
]
Search for users
Authorizations:
query Parameters
q | string keyword |
uid | integer <int64> ID of the user to search for |
page | integer page number of results to return (1-based) |
limit | integer page size of results |
Responses
Response samples
- 200
{- "data": [
- {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}
], - "ok": true
}
Get a user
Authorizations:
path Parameters
username required | string username of user to get |
Responses
Response samples
- 200
{- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}
List a user's activity feeds
Authorizations:
path Parameters
username required | string username of user |
query Parameters
only-performed-by | boolean if true, only show actions performed by the requested user |
date | string <date> the date of the activities to be found |
page | integer page number of results to return (1-based) |
limit | integer page size of results |
Responses
Response samples
- 200
[- {
- "act_user": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "act_user_id": 0,
- "comment": {
- "assets": [
- {
- "browser_download_url": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "download_count": 0,
- "id": 0,
- "name": "string",
- "size": 0,
- "uuid": "string"
}
], - "body": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "html_url": "string",
- "id": 0,
- "issue_url": "string",
- "original_author": "string",
- "original_author_id": 0,
- "pull_request_url": "string",
- "updated_at": "2019-08-24T14:15:22Z",
- "user": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}
}, - "comment_id": 0,
- "content": "string",
- "created": "2019-08-24T14:15:22Z",
- "id": 0,
- "is_private": true,
- "op_type": "string",
- "ref_name": "string",
- "repo": {
- "allow_merge_commits": true,
- "allow_rebase": true,
- "allow_rebase_explicit": true,
- "allow_rebase_update": true,
- "allow_squash_merge": true,
- "archived": true,
- "archived_at": "2019-08-24T14:15:22Z",
- "avatar_url": "string",
- "clone_url": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "default_allow_maintainer_edit": true,
- "default_branch": "string",
- "default_delete_branch_after_merge": true,
- "default_merge_style": "string",
- "description": "string",
- "empty": true,
- "external_tracker": {
- "external_tracker_format": "string",
- "external_tracker_regexp_pattern": "string",
- "external_tracker_style": "string",
- "external_tracker_url": "string"
}, - "external_wiki": {
- "external_wiki_url": "string"
}, - "fork": true,
- "forks_count": 0,
- "full_name": "string",
- "has_actions": true,
- "has_issues": true,
- "has_packages": true,
- "has_projects": true,
- "has_pull_requests": true,
- "has_releases": true,
- "has_wiki": true,
- "html_url": "string",
- "id": 0,
- "ignore_whitespace_conflicts": true,
- "internal": true,
- "internal_tracker": {
- "allow_only_contributors_to_track_time": true,
- "enable_issue_dependencies": true,
- "enable_time_tracker": true
}, - "language": "string",
- "languages_url": "string",
- "link": "string",
- "mirror": true,
- "mirror_interval": "string",
- "mirror_updated": "2019-08-24T14:15:22Z",
- "name": "string",
- "open_issues_count": 0,
- "open_pr_counter": 0,
- "original_url": "string",
- "owner": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "parent": { },
- "permissions": {
- "admin": true,
- "pull": true,
- "push": true
}, - "private": true,
- "release_counter": 0,
- "repo_transfer": {
- "doer": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "recipient": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "teams": [
- {
- "can_create_org_repo": true,
- "description": "string",
- "id": 0,
- "includes_all_repositories": true,
- "name": "string",
- "organization": {
- "avatar_url": "string",
- "description": "string",
- "email": "string",
- "full_name": "string",
- "id": 0,
- "location": "string",
- "name": "string",
- "repo_admin_change_team_access": true,
- "username": "string",
- "visibility": "string",
- "website": "string"
}, - "permission": "none",
- "units": [
- "repo.code",
- "repo.issues",
- "repo.ext_issues",
- "repo.wiki",
- "repo.pulls",
- "repo.releases",
- "repo.projects",
- "repo.ext_wiki"
], - "units_map": {
- "repo.code": "read",
- "repo.ext_issues": "none",
- "repo.ext_wiki": "none",
- "repo.issues": "write",
- "repo.projects": "none",
- "repo.pulls": "owner",
- "repo.releases": "none",
- "repo.wiki": "admin"
}
}
]
}, - "size": 0,
- "ssh_url": "string",
- "stars_count": 0,
- "template": true,
- "updated_at": "2019-08-24T14:15:22Z",
- "url": "string",
- "watchers_count": 0,
- "website": "string"
}, - "repo_id": 0,
- "user_id": 0
}
]
List the given user's followers
Authorizations:
path Parameters
username required | string username of user |
query Parameters
page | integer page number of results to return (1-based) |
limit | integer page size of results |
Responses
Response samples
- 200
[- {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}
]
List the users that the given user is following
Authorizations:
path Parameters
username required | string username of user |
query Parameters
page | integer page number of results to return (1-based) |
limit | integer page size of results |
Responses
Response samples
- 200
[- {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}
]
List the given user's GPG keys
Authorizations:
path Parameters
username required | string username of user |
query Parameters
page | integer page number of results to return (1-based) |
limit | integer page size of results |
Responses
Response samples
- 200
[- {
- "can_certify": true,
- "can_encrypt_comms": true,
- "can_encrypt_storage": true,
- "can_sign": true,
- "created_at": "2019-08-24T14:15:22Z",
- "emails": [
- {
- "email": "string",
- "verified": true
}
], - "expires_at": "2019-08-24T14:15:22Z",
- "id": 0,
- "key_id": "string",
- "primary_key_id": "string",
- "public_key": "string",
- "subkeys": [
- { }
], - "verified": true
}
]
List the given user's public keys
Authorizations:
path Parameters
username required | string username of user |
query Parameters
fingerprint | string fingerprint of the key |
page | integer page number of results to return (1-based) |
limit | integer page size of results |
Responses
Response samples
- 200
[- {
- "created_at": "2019-08-24T14:15:22Z",
- "fingerprint": "string",
- "id": 0,
- "key": "string",
- "key_type": "string",
- "read_only": true,
- "title": "string",
- "url": "string",
- "user": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}
}
]
List the repos owned by the given user
Authorizations:
path Parameters
username required | string username of user |
query Parameters
page | integer page number of results to return (1-based) |
limit | integer page size of results |
Responses
Response samples
- 200
[- {
- "allow_merge_commits": true,
- "allow_rebase": true,
- "allow_rebase_explicit": true,
- "allow_rebase_update": true,
- "allow_squash_merge": true,
- "archived": true,
- "archived_at": "2019-08-24T14:15:22Z",
- "avatar_url": "string",
- "clone_url": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "default_allow_maintainer_edit": true,
- "default_branch": "string",
- "default_delete_branch_after_merge": true,
- "default_merge_style": "string",
- "description": "string",
- "empty": true,
- "external_tracker": {
- "external_tracker_format": "string",
- "external_tracker_regexp_pattern": "string",
- "external_tracker_style": "string",
- "external_tracker_url": "string"
}, - "external_wiki": {
- "external_wiki_url": "string"
}, - "fork": true,
- "forks_count": 0,
- "full_name": "string",
- "has_actions": true,
- "has_issues": true,
- "has_packages": true,
- "has_projects": true,
- "has_pull_requests": true,
- "has_releases": true,
- "has_wiki": true,
- "html_url": "string",
- "id": 0,
- "ignore_whitespace_conflicts": true,
- "internal": true,
- "internal_tracker": {
- "allow_only_contributors_to_track_time": true,
- "enable_issue_dependencies": true,
- "enable_time_tracker": true
}, - "language": "string",
- "languages_url": "string",
- "link": "string",
- "mirror": true,
- "mirror_interval": "string",
- "mirror_updated": "2019-08-24T14:15:22Z",
- "name": "string",
- "open_issues_count": 0,
- "open_pr_counter": 0,
- "original_url": "string",
- "owner": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "parent": { },
- "permissions": {
- "admin": true,
- "pull": true,
- "push": true
}, - "private": true,
- "release_counter": 0,
- "repo_transfer": {
- "doer": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "recipient": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "teams": [
- {
- "can_create_org_repo": true,
- "description": "string",
- "id": 0,
- "includes_all_repositories": true,
- "name": "string",
- "organization": {
- "avatar_url": "string",
- "description": "string",
- "email": "string",
- "full_name": "string",
- "id": 0,
- "location": "string",
- "name": "string",
- "repo_admin_change_team_access": true,
- "username": "string",
- "visibility": "string",
- "website": "string"
}, - "permission": "none",
- "units": [
- "repo.code",
- "repo.issues",
- "repo.ext_issues",
- "repo.wiki",
- "repo.pulls",
- "repo.releases",
- "repo.projects",
- "repo.ext_wiki"
], - "units_map": {
- "repo.code": "read",
- "repo.ext_issues": "none",
- "repo.ext_wiki": "none",
- "repo.issues": "write",
- "repo.projects": "none",
- "repo.pulls": "owner",
- "repo.releases": "none",
- "repo.wiki": "admin"
}
}
]
}, - "size": 0,
- "ssh_url": "string",
- "stars_count": 0,
- "template": true,
- "updated_at": "2019-08-24T14:15:22Z",
- "url": "string",
- "watchers_count": 0,
- "website": "string"
}
]
The repos that the given user has starred
Authorizations:
path Parameters
username required | string username of user |
query Parameters
page | integer page number of results to return (1-based) |
limit | integer page size of results |
Responses
Response samples
- 200
[- {
- "allow_merge_commits": true,
- "allow_rebase": true,
- "allow_rebase_explicit": true,
- "allow_rebase_update": true,
- "allow_squash_merge": true,
- "archived": true,
- "archived_at": "2019-08-24T14:15:22Z",
- "avatar_url": "string",
- "clone_url": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "default_allow_maintainer_edit": true,
- "default_branch": "string",
- "default_delete_branch_after_merge": true,
- "default_merge_style": "string",
- "description": "string",
- "empty": true,
- "external_tracker": {
- "external_tracker_format": "string",
- "external_tracker_regexp_pattern": "string",
- "external_tracker_style": "string",
- "external_tracker_url": "string"
}, - "external_wiki": {
- "external_wiki_url": "string"
}, - "fork": true,
- "forks_count": 0,
- "full_name": "string",
- "has_actions": true,
- "has_issues": true,
- "has_packages": true,
- "has_projects": true,
- "has_pull_requests": true,
- "has_releases": true,
- "has_wiki": true,
- "html_url": "string",
- "id": 0,
- "ignore_whitespace_conflicts": true,
- "internal": true,
- "internal_tracker": {
- "allow_only_contributors_to_track_time": true,
- "enable_issue_dependencies": true,
- "enable_time_tracker": true
}, - "language": "string",
- "languages_url": "string",
- "link": "string",
- "mirror": true,
- "mirror_interval": "string",
- "mirror_updated": "2019-08-24T14:15:22Z",
- "name": "string",
- "open_issues_count": 0,
- "open_pr_counter": 0,
- "original_url": "string",
- "owner": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "parent": { },
- "permissions": {
- "admin": true,
- "pull": true,
- "push": true
}, - "private": true,
- "release_counter": 0,
- "repo_transfer": {
- "doer": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "recipient": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "teams": [
- {
- "can_create_org_repo": true,
- "description": "string",
- "id": 0,
- "includes_all_repositories": true,
- "name": "string",
- "organization": {
- "avatar_url": "string",
- "description": "string",
- "email": "string",
- "full_name": "string",
- "id": 0,
- "location": "string",
- "name": "string",
- "repo_admin_change_team_access": true,
- "username": "string",
- "visibility": "string",
- "website": "string"
}, - "permission": "none",
- "units": [
- "repo.code",
- "repo.issues",
- "repo.ext_issues",
- "repo.wiki",
- "repo.pulls",
- "repo.releases",
- "repo.projects",
- "repo.ext_wiki"
], - "units_map": {
- "repo.code": "read",
- "repo.ext_issues": "none",
- "repo.ext_wiki": "none",
- "repo.issues": "write",
- "repo.projects": "none",
- "repo.pulls": "owner",
- "repo.releases": "none",
- "repo.wiki": "admin"
}
}
]
}, - "size": 0,
- "ssh_url": "string",
- "stars_count": 0,
- "template": true,
- "updated_at": "2019-08-24T14:15:22Z",
- "url": "string",
- "watchers_count": 0,
- "website": "string"
}
]
List the repositories watched by a user
Authorizations:
path Parameters
username required | string username of the user |
query Parameters
page | integer page number of results to return (1-based) |
limit | integer page size of results |
Responses
Response samples
- 200
[- {
- "allow_merge_commits": true,
- "allow_rebase": true,
- "allow_rebase_explicit": true,
- "allow_rebase_update": true,
- "allow_squash_merge": true,
- "archived": true,
- "archived_at": "2019-08-24T14:15:22Z",
- "avatar_url": "string",
- "clone_url": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "default_allow_maintainer_edit": true,
- "default_branch": "string",
- "default_delete_branch_after_merge": true,
- "default_merge_style": "string",
- "description": "string",
- "empty": true,
- "external_tracker": {
- "external_tracker_format": "string",
- "external_tracker_regexp_pattern": "string",
- "external_tracker_style": "string",
- "external_tracker_url": "string"
}, - "external_wiki": {
- "external_wiki_url": "string"
}, - "fork": true,
- "forks_count": 0,
- "full_name": "string",
- "has_actions": true,
- "has_issues": true,
- "has_packages": true,
- "has_projects": true,
- "has_pull_requests": true,
- "has_releases": true,
- "has_wiki": true,
- "html_url": "string",
- "id": 0,
- "ignore_whitespace_conflicts": true,
- "internal": true,
- "internal_tracker": {
- "allow_only_contributors_to_track_time": true,
- "enable_issue_dependencies": true,
- "enable_time_tracker": true
}, - "language": "string",
- "languages_url": "string",
- "link": "string",
- "mirror": true,
- "mirror_interval": "string",
- "mirror_updated": "2019-08-24T14:15:22Z",
- "name": "string",
- "open_issues_count": 0,
- "open_pr_counter": 0,
- "original_url": "string",
- "owner": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "parent": { },
- "permissions": {
- "admin": true,
- "pull": true,
- "push": true
}, - "private": true,
- "release_counter": 0,
- "repo_transfer": {
- "doer": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "recipient": {
- "active": true,
- "avatar_url": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "email": "user@example.com",
- "followers_count": 0,
- "following_count": 0,
- "full_name": "string",
- "id": 0,
- "is_admin": true,
- "language": "string",
- "last_login": "2019-08-24T14:15:22Z",
- "location": "string",
- "login": "string",
- "login_name": "empty",
- "prohibit_login": true,
- "restricted": true,
- "starred_repos_count": 0,
- "visibility": "string",
- "website": "string"
}, - "teams": [
- {
- "can_create_org_repo": true,
- "description": "string",
- "id": 0,
- "includes_all_repositories": true,
- "name": "string",
- "organization": {
- "avatar_url": "string",
- "description": "string",
- "email": "string",
- "full_name": "string",
- "id": 0,
- "location": "string",
- "name": "string",
- "repo_admin_change_team_access": true,
- "username": "string",
- "visibility": "string",
- "website": "string"
}, - "permission": "none",
- "units": [
- "repo.code",
- "repo.issues",
- "repo.ext_issues",
- "repo.wiki",
- "repo.pulls",
- "repo.releases",
- "repo.projects",
- "repo.ext_wiki"
], - "units_map": {
- "repo.code": "read",
- "repo.ext_issues": "none",
- "repo.ext_wiki": "none",
- "repo.issues": "write",
- "repo.projects": "none",
- "repo.pulls": "owner",
- "repo.releases": "none",
- "repo.wiki": "admin"
}
}
]
}, - "size": 0,
- "ssh_url": "string",
- "stars_count": 0,
- "template": true,
- "updated_at": "2019-08-24T14:15:22Z",
- "url": "string",
- "watchers_count": 0,
- "website": "string"
}
]
List the authenticated user's access tokens
Authorizations:
path Parameters
username required | string username of user |
query Parameters
page | integer page number of results to return (1-based) |
limit | integer page size of results |
Responses
Response samples
- 200
[- {
- "id": 0,
- "name": "string",
- "scopes": [
- "string"
], - "sha1": "string",
- "token_last_eight": "string"
}
]
Create an access token
Authorizations:
path Parameters
username required | string username of user |
Request Body schema: application/json
name required | string |
scopes | Array of strings |
Responses
Request samples
- Payload
{- "name": "string",
- "scopes": [
- "string"
]
}
Response samples
- 201
{- "id": 0,
- "name": "string",
- "scopes": [
- "string"
], - "sha1": "string",
- "token_last_eight": "string"
}
Join our community
Gitea is open source. Star our GitHub repo, and join our community on Discord!
Subscribe to our newsletter
Stay up to date with all things Gitea